- Force Index - Oscillators - MetaTrader 5 Help and
- 'Force Index (FRC)' indicator for MT5 both use MA(2)-MA(1) and
- https://codebase.mql4.com/299 (2006.11.30 //archive.org) had it.
- I agree with you. So does:
- Sergey Golubev's post (2013.10.11) at Indicators: Force Index (FRC) - Moving Average, MA - Articles, Library comments - MQL5 programming forum
- Elder's Force Index (EFI) - TradingView Wiki — //www.tradingview.com/wiki/Elder%27s_Force_Index_(EFI)
- Discovering The Force Index
- Can someone please advise where I send a Request for Support to Metaquotes. - MQL4 and MetaTrader 4 - MQL4 programming forum
- Get in touch with developers using Service Desk! - MQL5 forum
- Report it to the service desk. MQL5.community - User Memo - MQL5 Articles
- Report it to the Service Desk, not us users.
The real formula of Force Index according to Alexander Elders the Inventor of Force Index:
The real calculation of force index uses "Exponential Moving Average" after we calculate the "Raw form of Force Index":
Based upon the real formulae you supplied, and @whroeder1's answer, I threw together this MQL5 version of Force Index, and all before my second cup of coffee.
Let me know if it displays what you expect from the true Force Index.
Files:
Force_Index.mq5
3 kb
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
Both MT4 and MT5 Force index Calculation is Wrong.
Here's the formula in the Official MetaTrader CodeBase:
FORCE INDEX (i) = VOLUME (i) * ((MA (ApPRICE, N, i) - MA (ApPRICE, N, i-1))
MetaTrader Developers used first the moving average to smooth the current close and previous close instead of "Raw Form" of Force Index: "Current Volume * (Current Close - Previous Close)"..
The Default setting in MetaTrader Force Index is SMA even I changed that to EMA the signal is a little bit different compared to real formula of Force Index because they used the moving average first on the closing price instead of Raw form of Force index.. I tested this multiple times using my custom indicator to use the real formula of Force Index, and compare this other trading platform. In TradingView they used the exact formula of Elder's Force Index.
The real formula of Force Index according to Alexander Elders the Inventor of Force Index:
The real calculation of force index uses "Exponential Moving Average" after we calculate the "Raw form of Force Index":