Exp_Fractal_Force_Index - MetaTrader 5 Expert - MT4/MT5 Resources


The simplest EA is based on the fractal force index . Sell when the indicator crosses downwards from the zero level and buy when it crosses upwards. When the bar closes, if there is a horizontal cross, a signal is formed.
The Fractal_Force_Index_HTF indicator in the EA is only used for more convenient visualization of trends in the strategy tester, in other operating modes it is inactive.
Place the Fractal_Force_Index.ex5 and Fractal_Force_Index_HTF.ex5 compiled files into <terminal data folder>\MQL5\indicators .
After compilation, the Exp_Fractal_Force_Index.ex5 expert file contains the Fractal_Force_Index.ex5 and Fractal_Force_Index_HTF.ex5 indicators as shown below in the resource , therefore, they do not need to be present in the terminal folder for the compiled EA to work! For this purpose, corresponding code has been added to the EA code in order to include these indicators in the EA's executable file.
Metrics executable has been added as a global scope resource
Change the string path to the indicator used as a resource in the OnInit() function block
Therefore, the executable compiled by experts can be used independently on other trading terminals without indicators.
Please note that the TradeAlgorithms.mqh library file allows trading Expert Advisors with non-zero spreads and the option to set Stop Loss and Take Profit along with opening positions with brokers that offer the following services. You can download more variants of this library via the following link: Trading Algorithms .
The input parameters of the default Expert Advisor were used in the test shown below. Stop Loss and Take Profit were not used during testing.

Figure 1. Example of trade on chart
2015 EURJPY H4 test results:

Figure 2. Test result chart
Attachment download
📎 tradealgorithms.mqh (178.23 KB)
📎fractal_force_index.mq5 (34.37 KB)
📎 fractal_force_index_htf.mq5 (21.79 KB)
📎 exp_fractal_force_index.mq5 (20.2 KB)
Source: MQL5 #17042
💡 Featured Recommendations
✍️ Latest by the author
- •
- •
- •
- •
- •
- •
📌 Popular topics
- •
- •
- •
- •
- •
- •
- •
- •
🔗 You May Be Interested In
- •
- •
- •
- •
- •
- •