init
This commit is contained in:
@@ -711,13 +711,16 @@ class Common:
|
||||
|
||||
return -1
|
||||
|
||||
def buy_stock_dail5_5_20(self, stock_daily):
|
||||
|
||||
if stock_daily['avg5'][1] < stock_daily['avg20'][1] and stock_daily['avg20'][0] < stock_daily['avg5'][0]:
|
||||
if stock_daily['avg20'][0] < stock_daily['avg5'][0] < stock_daily['avg40'][0]:
|
||||
return True
|
||||
def buy_stock_daily_5_20(self, stock_daily):
|
||||
|
||||
if stock_daily['avg5'][1] < stock_daily['avg20'][1] and stock_daily['avg20'][0] < stock_daily['avg5'][0]:
|
||||
return True
|
||||
|
||||
return False
|
||||
return False
|
||||
|
||||
def buy_stock_daily_20_60(self, stock_daily):
|
||||
|
||||
if stock_daily['avg20'][1] < stock_daily['avg60'][1] and stock_daily['avg60'][0] < stock_daily['avg20'][0]:
|
||||
return True
|
||||
|
||||
return False
|
||||
|
||||
Reference in New Issue
Block a user