Update filtering

This commit is contained in:
Sik Yoon 2024-05-26 07:55:35 +09:00
parent 59a5e540ac
commit 2e2222377f
2 changed files with 4 additions and 4 deletions

View File

@ -312,7 +312,7 @@ pub async fn list_up_for_sell(all_data: &AllData) -> Result<(), Box<dyn std::err
amplitude_variance = amplitude_variance / (opclo_sample_length - 1) as f64;
let standard_deviation_amplitude = amplitude_variance.sqrt();
target_profit_percent =
average_amplitude + (standard_deviation_amplitude * 2.0);
average_amplitude + (standard_deviation_amplitude * 1.0);
}
}
@ -333,7 +333,7 @@ pub async fn list_up_for_sell(all_data: &AllData) -> Result<(), Box<dyn std::err
// }
if over_turned == true && server_epoch - element.registered_server_epoch > 1_800_000 {
is_sell = true;
} else if target_profit_percent.is_normal() && element.pure_profit_percent > target_profit_percent * 2.5 {
} else if target_profit_percent.is_normal() && element.pure_profit_percent > target_profit_percent * 3.0 {
is_sell = true;
} else if target_profit_percent.is_normal() && element.pure_profit_percent < target_profit_percent * -1.5 {
is_sell = true;

View File

@ -311,7 +311,7 @@ pub async fn list_up_for_sell(all_data: &AllData) -> Result<(), Box<dyn std::err
amplitude_variance = amplitude_variance / (opclo_sample_length - 1) as f64;
let standard_deviation_amplitude = amplitude_variance.sqrt();
target_profit_percent =
average_amplitude + (standard_deviation_amplitude * 2.0);
average_amplitude + (standard_deviation_amplitude * 1.0);
}
}
@ -331,7 +331,7 @@ pub async fn list_up_for_sell(all_data: &AllData) -> Result<(), Box<dyn std::err
// }
if over_turned == true && server_epoch - element.registered_server_epoch > 1_800_000 {
is_sell = true;
} else if target_profit_percent.is_normal() && element.pure_profit_percent > target_profit_percent * 2.5 {
} else if target_profit_percent.is_normal() && element.pure_profit_percent > target_profit_percent * 3.0 {
is_sell = true;
} else if target_profit_percent.is_normal() && element.pure_profit_percent < target_profit_percent * -1.5 {
is_sell = true;