init
This commit is contained in:
@@ -125,6 +125,9 @@ class HTS_DAILY (HTS):
|
|||||||
if bsLine['buy'][last_index] > 0:
|
if bsLine['buy'][last_index] > 0:
|
||||||
bs_buy_price = bsLine['buy'][last_index]
|
bs_buy_price = bsLine['buy'][last_index]
|
||||||
bs_buy_weight = bsLine['buy_weight'][last_index]
|
bs_buy_weight = bsLine['buy_weight'][last_index]
|
||||||
|
if stock_code == "252670":
|
||||||
|
buy_count = int(1000000 / bs_buy_price)
|
||||||
|
else:
|
||||||
buy_count = int((self.MAX_BUY_PRICE*bs_buy_weight) / bs_buy_price)
|
buy_count = int((self.MAX_BUY_PRICE*bs_buy_weight) / bs_buy_price)
|
||||||
|
|
||||||
# 매수를 주문한다.
|
# 매수를 주문한다.
|
||||||
|
|||||||
Reference in New Issue
Block a user