Hello, i make Stochastic to my strategy and take all dates from Binance dates like:
sto_fast = new Stochastic("STO_" + symbol, 15, 4, 12);
thant make Collision in 15min timeframe: var consolidator = new TradeBarConsolidator(TimeSpan.FromMinutes(15));
public void OnConsolidorData(object s, TradeBar bar)
DEBUG(sto_fast.StochK); - he show me different VALUE from Binance or tradingview. - how i can get similar VALUE as in tradingview???
Thank you
Vladimir
Aleksandr Lukjanov,
George C. Lane Stochastic Oscillator has 2 versions:
Fast Stochastic Oscillator:
Fast %K = %K basic calculation
Fast %D = 3-period SMA of Fast %K
Slow Stochastic Oscillator:
Slow %K = Fast %K smoothed with 3-period SMA
Slow %D = 3-period SMA of Slow %K
You can see that Fast %D = Slow %K
So it actually has 3 outputs
Fast %K --> Fast %D = Slow %K --> Slow %D
In lean-api-docs there are also 3 outputs
FastStoch --> StochK --> StochD
StochK = Slow %K = Fast %D
To get Fast %K try to use in your code
DEBUG(sto_fast.FastStoch);
.
Aleksandr Lukjanov
Thank you for helping
Vladimir
Aleksandr Lukjanov,
If you are satisfied with my answer, please accept it.
Aleksandr Lukjanov
The material on this website is provided for informational purposes only and does not constitute an offer to sell, a solicitation to buy, or a recommendation or endorsement for any security or strategy, nor does it constitute an offer to provide investment advisory services by QuantConnect. In addition, the material offers no opinion with respect to the suitability of any security or specific investment. QuantConnect makes no guarantees as to the accuracy or completeness of the views expressed in the website. The views are subject to change, and may have become unreliable for various reasons, including changes in market conditions or economic circumstances. All investments involve risk, including loss of principal. You should consult with an investment professional before making any investment decisions.
To unlock posting to the community forums please complete at least 30% of Boot Camp.
You can continue your Boot Camp training progress from the terminal. We hope to see you in the community soon!