Merge pull request #5 from Redsandyg/Redsandyg-patch-3
Update Ind_Stochastic.py
This commit is contained in:
commit
e28a84c36d
@ -34,15 +34,15 @@ class Stochastic:
|
||||
'dataType':'ohcl',
|
||||
'window':14,
|
||||
'windowSMA':5
|
||||
}, 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:
|
||||
self.fig=self.pltShow(showOnlyIndex)
|
||||
if needFig:
|
||||
self.fig=self.pltShow(showOnlyIndex,drawFig)
|
||||
|
||||
def getKn(self):
|
||||
ans={}
|
||||
@ -97,7 +97,7 @@ class Stochastic:
|
||||
|
||||
|
||||
|
||||
def pltShow(self,showOnlyIndex):
|
||||
def pltShow(self,showOnlyIndex,drawFig):
|
||||
ans=None
|
||||
|
||||
|
||||
@ -136,10 +136,12 @@ class Stochastic:
|
||||
|
||||
})
|
||||
|
||||
self.figDict=req
|
||||
|
||||
|
||||
|
||||
ans = CoreDraw.coreDraw(req,True)
|
||||
|
||||
ans = CoreDraw.coreDraw(req,drawFig)
|
||||
|
||||
return ans
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user