How to code RSI based on OHLC4 for MT4? Please guide me.
427972: How to code RSI based on OHLC4 for MT4? Please guide me.
Take the example RSI in the CodeBase,and modify it for True Price (OHLC4).
From:
diff=close[i]-close[i-1]; // Line 94 & 118
To:
diff = ( ( open[i]+high[i]+low[i]+close[i] ) - ( open[i-1]+high[i-1]+low[i-1]+close[i-1] ) ) * 0.25; // Line 94 & 118


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