Merge pull request #4 from Redsandyg/Redsandyg-patch-2

Update Ind_Ishimoku.py
This commit is contained in:
Redsandy 2022-03-05 23:58:10 +03:00 committed by GitHub
commit 61553949fa

View File

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