init
This commit is contained in:
@@ -104,7 +104,7 @@ class IchimokuCloud:
|
||||
stock['PRICE'][i]['ichimokucloud_leadingSpan2'] = df.leadingSpan2.values[i]
|
||||
for i in range(len(df.changeLine)-diff):
|
||||
if i < len(df.changeLine)-diff-26:
|
||||
stock['PRICE'][i]['ichimokucloud_laggingSpan'] = stock['PRICE']['close'][i + 26]
|
||||
stock['PRICE'][i]['ichimokucloud_laggingSpan'] = stock['PRICE'][i + 26]['close']
|
||||
else:
|
||||
stock['PRICE'][i]['ichimokucloud_laggingSpan'] = -1
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user