init
This commit is contained in:
@@ -1,8 +1,5 @@
|
||||
import os.path
|
||||
import pandas as pd
|
||||
import platform
|
||||
if platform.system().lower().find("window") >= 0 and platform.architecture()[0] != "64bit" :
|
||||
import win32com.client
|
||||
|
||||
import sqlite3
|
||||
import shutil
|
||||
@@ -584,7 +581,7 @@ class DailyStatus (HTS):
|
||||
analyzed_day = 60
|
||||
data = self.analyze(stock, analyzed_day)
|
||||
# 분석일 데이터만 활용한다 (이전 데이터는 제거)
|
||||
data.drop(data.index[:analyzed_day], inplace=True)
|
||||
data.drop(data.index[:len(data) - analyzed_day], inplace=True)
|
||||
|
||||
# print logs
|
||||
for i in range(len(data.index)):
|
||||
@@ -622,7 +619,7 @@ class DailyStatus (HTS):
|
||||
stock = self.getLastData(stock_code, n)
|
||||
data = self.analyze(stock, analyzed_day)
|
||||
# 분석일 데이터만 활용한다 (이전 데이터는 제거)
|
||||
data.drop(data.index[:analyzed_day], inplace=True)
|
||||
data.drop(data.index[:len(data) - analyzed_day], inplace=True)
|
||||
|
||||
# print logs
|
||||
# for i in range(len(data.index)):
|
||||
@@ -631,7 +628,6 @@ class DailyStatus (HTS):
|
||||
bsLine, data = self.buySellChecker.checkTransactionWithEnvelope(data, stock_code, 120, isRealTime=False)
|
||||
|
||||
# 그래프를 그린다.
|
||||
|
||||
if len(data.index) > 10 and bsLine['buy'][len(bsLine['buy'])-1] > 0:
|
||||
self.writeFile(dailyDirName, stock_code, stock_name, today, data, bsLine)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user