hi, I tested the function CDLDOJISTAR to find '+' shaped k lines, I found that not all the '+' shaped k lines were selected. Some "+" shaped k lines were lost? Who has met the same problem? Or it's the problem
of my codes?
import tushare as ts
import talib as ta
import numpy as np
def back_track(code):
data = ts.get_h_data(code,start='2017-05-01')
high = np.array(data['high'], dtype=float)
low = np.array(data['low'], dtype=float)
open = np.array(data['open'], dtype=float)
close = np.array(data['close'], dtype=float)
date = data.index
integer = ta.CDLDOJISTAR(open, high, low, close)
for j in range(0, len(integer), 1):
if integer[j] != 0:
print str(integer[j]) + "," + code + "," + str(date[j]) + "," + str(j) +'\r\n'
back_track('000728')
hi, I tested the function CDLDOJISTAR to find '+' shaped k lines, I found that not all the '+' shaped k lines were selected. Some "+" shaped k lines were lost? Who has met the same problem? Or it's the problem
of my codes?
import tushare as ts
import talib as ta
import numpy as np
def back_track(code):
data = ts.get_h_data(code,start='2017-05-01')
high = np.array(data['high'], dtype=float)
low = np.array(data['low'], dtype=float)
open = np.array(data['open'], dtype=float)
close = np.array(data['close'], dtype=float)
date = data.index
integer = ta.CDLDOJISTAR(open, high, low, close)
for j in range(0, len(integer), 1):
if integer[j] != 0:
print str(integer[j]) + "," + code + "," + str(date[j]) + "," + str(j) +'\r\n'
back_track('000728')