|
@@ -83,6 +83,6 @@ def process_data(this_data_previous, this_data_latest, this_price, this_threshol
|
|
|
this_drop = False
|
|
this_drop = False
|
|
|
quantity_previous = this_data_previous.available_shares * float(this_data_latest.current_price)
|
|
quantity_previous = this_data_previous.available_shares * float(this_data_latest.current_price)
|
|
|
quantity_latest = this_data_latest.available_shares * float(this_data_latest.current_price)
|
|
quantity_latest = this_data_latest.available_shares * float(this_data_latest.current_price)
|
|
|
- if this_data_latest.current_price > this_price or quantity_latest - quantity_previous > this_threshold * 1e9:
|
|
|
|
|
|
|
+ if this_data_latest.current_price > this_price and quantity_latest - quantity_previous > this_threshold * 1e9:
|
|
|
this_drop = True
|
|
this_drop = True
|
|
|
return this_drop
|
|
return this_drop
|