backtrader2 / backtrader

Python Backtesting library for trading strategies
https://www.backtrader.com
GNU General Public License v3.0
238 stars 54 forks source link

The stochasticfull index is different from the KDJ index of common stock software #80

Open toolgood opened 3 years ago

toolgood commented 3 years ago

The stochasticfull index is different from the KDJ index of common stock software

stock software RSV1:=(CLOSE-LLV(LOW,55))/(HHV(HIGH,55)-LLV(LOW,55))*100; GSQR3:SMA(RSV1,5,1),COLOR0000FF; GSQR4:SMA(GSQR3,10,1),COLOR00FF00;

python self.kd2 = bt.indicators.StochasticFull(self.data, period=55, period_dfast=5, period_dslow=10)

The curve is wrong