Update filtering
This commit is contained in:
parent
59a5e540ac
commit
2e2222377f
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user