RayJrr:
Hi, If you enter a Stochastic with inputs 9,3,3 in both tradingview and mt4 you get different results. Does anyone know how I can adjust MT4 to match tradingview ?
Here is the out of the box code for MT4 Stochastic:
Here is the code for the out of the box Stochastic in tradingview:
Tradingview help describes their stoch() function like this:
Pay attention to the inputs... You are using 9,3,3 and the trading-view pinescript is set to 14,3,3. Also, the TV stock is smoothing the K line so you'd want to set the MQL stoch to use STO_LOWHIGH to produce the closest results.
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Hi, If you enter a Stochastic with inputs 9,3,3 in both tradingview and mt4 you get different results. Does anyone know how I can adjust MT4 to match tradingview ?
Here is the out of the box code for MT4 Stochastic:
Here is the code for the out of the box Stochastic in tradingview:
Tradingview help describes their stoch() function like this: