Update Ind_Ishimoku.py

This commit is contained in:
Redsandy 2022-03-05 23:55:33 +03:00 committed by GitHub
parent 3a499ff25f
commit 1ef906dced

View File

@ -38,17 +38,15 @@ class Ishimoku:
'long':52, 'long':52,
'backstep':26, 'backstep':26,
'forwardstep':26 'forwardstep':26
}, },needFig=False,showOnlyIndex=True,drawFig=False
needShow=False,
showOnlyIndex=True
): ):
self.base_df=base_df.reset_index(drop=True) self.base_df=base_df.reset_index(drop=True)
self.options=options self.options=options
self.ans=self.getAns() self.ans=self.getAns()
if needShow==True: if needFig:
self.fig=self.pltShow(showOnlyIndex) self.fig=self.pltShow(showOnlyIndex,drawFig)
def getTankenSen(self): def getTankenSen(self):
@ -121,7 +119,7 @@ class Ishimoku:
return(ans) return(ans)
def pltShow(self,showOnlyIndex): def pltShow(self,showOnlyIndex,drawFig):
ans=None ans=None
req=[] req=[]
@ -184,6 +182,7 @@ class Ishimoku:
'name':'OHCL' 'name':'OHCL'
}) })
ans = CoreDraw.coreDraw(req,True) self.figDict=req
ans = CoreDraw.coreDraw(req,drawFig)
#print(ans) #print(ans)
return ans return ans