init
This commit is contained in:
@@ -215,7 +215,7 @@ class HTS_Stocks (HTS):
|
||||
return 0
|
||||
|
||||
max_price = math.log(type_kospi['day']*type_kospi['week']*type_kospi['month']*type_stock['day']*type_stock['week']*type_stock['month'], 1.3) * base_price
|
||||
buy_count = int(math.ceil(max_price / bs_buy_price))
|
||||
buy_count = int(math.floor(max_price / bs_buy_price))
|
||||
|
||||
return buy_count
|
||||
|
||||
|
||||
Reference in New Issue
Block a user