Welcome Forex EA downloads & MT4/MT5 auto-trading resources — EAs, Gold EAs, quant tools and real-world automation.
Sign In Sign Up

Exp_Fractal_WeightOscillator - MetaTrader 5 Expert

author EAcpu | 4 reads | 0 comments |

Exp_Fractal_WeightOscillator - expert for MetaTrader 5

Exp_Fractal_WeightOscillator - expert for MetaTrader 5

Real author: Vladimir Hristov

The simplest EA is based on the Fractal_WeightOscillator weighted oscillator . Sell ​​when the oscillator crosses downward from overbought levels and buy when the oscillator crosses upward from oversold levels. If the level is crossed, the signal is formed on the close of the bar.

The Fractal_WeightOscillator_HTF indicator in the EA is only used for easier visualization of trends in the strategy tester, in other operating modes it is inactive.

Place the Fractal_WeightOscillator.ex5 and Fractal_WeightOscillator_HTF.ex5 compiled files into <terminal data folder>\MQL5\indicators .

After compilation, the Exp_Fractal_WeightOscillator.ex5 expert file contains the Fractal_WeightOscillator.ex5 and Fractal_WeightOscillator_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.

Exp_Fractal_WeightOscillator - expert for MetaTrader 5

Figure 1. Example of trade on chart

2015 GBPUSD H6 test results:

Exp_Fractal_WeightOscillator - expert for MetaTrader 5

Figure 2. Test result chart


Attachment download

📎 Exp_Fractal_WeightOscillator.mq5 (22.77 KB)

📎 SmoothAlgorithms.mqh (130.2 KB)

📎 TradeAlgorithms.mqh (178.23 KB)

📎Fractal_WeightOscillator.mq5 (27.1 KB)

📎 Fractal_WeightOscillator_HTF.mq5 (23.84 KB)

Source: MQL5 #17434

Verification code Refresh