This commit is contained in:
dosangyoon
2021-10-03 20:53:30 +09:00
parent 478c6571c8
commit 015545d8e0

View File

@@ -1,5 +1,4 @@
import win32com.client import win32com.client
import win32com.client
import time import time
import os import os
from datetime import datetime, timedelta from datetime import datetime, timedelta
@@ -895,17 +894,18 @@ class HTS:
if bs_buy_price > 0: if bs_buy_price > 0:
if PREVIOUS_PRICE > 0: if PREVIOUS_PRICE > 0:
if PREVIOUS_PRICE > bs_buy_price: if PREVIOUS_PRICE > bs_buy_price:
if BUY_COUNT < 100: if BUY_COUNT > 240:
BUY_COUNT = 90 BUY_COUNT = 240
if BUY_COUNT <= 140:
BUY_COUNT = 140
BUY_COUNT += 10 BUY_COUNT += 10
if BUY_COUNT > 250:
BUY_COUNT = 250
elif PREVIOUS_PRICE < bs_buy_price: elif PREVIOUS_PRICE < bs_buy_price:
if BUY_COUNT > 250: if BUY_COUNT > 250:
BUY_COUNT = 260 BUY_COUNT = 260
if BUY_COUNT <= 150:
BUY_COUNT = 160
BUY_COUNT -= 10 BUY_COUNT -= 10
if BUY_COUNT < 100:
BUY_COUNT = 100
PREVIOUS_PRICE = bs_buy_price PREVIOUS_PRICE = bs_buy_price
# 매수 주문 # 매수 주문