Merge pull request #4 from Redsandyg/Redsandyg-patch-2
Update Ind_Ishimoku.py
This commit is contained in:
commit
61553949fa
@ -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=[]
|
||||||
|
|
||||||
@ -183,7 +181,8 @@ class Ishimoku:
|
|||||||
'col':1,
|
'col':1,
|
||||||
'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
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user