init
This commit is contained in:
@@ -211,9 +211,9 @@ class BuySellChecker:
|
||||
if data["slow_k"][i-1] < data["slow_d"][i-1] and data["slow_d"][i] < data["slow_k"][i] and data["slow_k"][i-1] < data["slow_k"][i]:
|
||||
buy = data["low"][i]
|
||||
else:
|
||||
if data["low"][i] < data["lower"][i]:
|
||||
if data["slow_k"][i-1] < 50 and data["slow_k"][i] < 55:
|
||||
if data["slow_k"][i-1] < data["slow_d"][i-1] and data["slow_k"][i] > data["slow_d"][i] and data["slow_k"][i-1] <= data["slow_k"][i]:
|
||||
if data["low"][i] < data["lower"][i] + 5:
|
||||
if data["slow_k"][i-1] < 30 and data["slow_k"][i] < 30:
|
||||
if data["slow_k"][i-1] < data["slow_k"][i]:
|
||||
buy = data["low"][i]
|
||||
|
||||
#############################
|
||||
|
||||
@@ -549,7 +549,7 @@ class HTS_252670:
|
||||
|
||||
def buyRealTime(self, GIVEN_DAY):
|
||||
orderChecker = OrderChecker(self.stock_code)
|
||||
BASE_COUNT = 100
|
||||
BASE_COUNT = 200
|
||||
|
||||
timecheckList = pd.read_csv("timecheck.csv").values.tolist()
|
||||
timecheck = {GIVEN_DAY + " " + str(second).zfill(6):False for second, check in timecheckList}
|
||||
|
||||
Reference in New Issue
Block a user