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