• Overview
  • Reviews (3)
  • Comments (79)
  • What's new

Multi oscillator divergence EA

This multi oscillator Expert Advisor identifies when a divergence occurs between price and an oscillator. It identifies both regular/classical (trend reversal) and hidden (trend continuation) divergences. It has RSI, Pin bar and Engulfing filter options which makes it possible to filter out only the strongest setups.

Due to the numerous amount of settings the Expert Advisor is mainly aimed for intermediate to advanced traders who already have experience with divergence trading.


  • Can detect divergences for the following oscillators: MACD, OsMA (Moving average of Oscillator), Stochastic, RSI, CCI, RVI and Awesome. Only one oscillator can be selected.
  • Possibility to close half position selecting from different strategies.
  • 2 moving averages with different periods can be enabled as a trend filter. For instance MA 200 and MA 21.
  • Spread and slippage filter.
  • Averaging down function (the EA complies with NFA FIFO regulations when using the correct settings. Please see the blog.)

It is recommended to trade a portfolio of minimum 6 symbols at the same time to reduce risk as much as possible. Please also make sure that you test the EA on a demo account and let at least 20 trades be done. I recommend you to start with the preset (.set) files when you will do your own back testing and fine tuning in the strategy tester.


Parameters marked with an asterisk (*) in the beginning are explained here.

  • * Time frame to operate on
  • Send alert instead of opening trade - When set to 'true' an alert will be sent instead of opening a trade.
  • ECN account - 'true' or 'false'.
  • Main oscillator
  • Second oscillator (double divergence) - If set to NONE then only the main oscillator will be used.
  • Divergence candle shift (must be >0) - When set to 1 you will be able to catch the movement earlier. On the other hand, the signal is less reliable.
  • Double divergence max. candle shift - How many candles back in time to look for the second divergence.
  • * Second divergence time frame.
  • * Bars to check (divergence depth).
  • * Trade only if divergence candle high/low crossed.
  • * Offset in points from candle high/low.
  • Maximum bars signal is valid for - The market order will not be placed after this amount of bars.
    • Trade regular.
    • RSI filter method.
    • Use moving average filter.
  • HIDDEN DIVERGENCE SETTINGS (trend continuation)
    • Trade hidden.
    • RSI filter method.
    • Use moving average filter.
  • Open buy order - 'true' or 'false'.
  • Open sell order - 'true' or 'false'.
  • Enable trade time filter (your broker's server time) - Time filter for opening trades.
  • Trade from/to time - Hour and minutes from/to.
  • * Maximum allowed slippage in points.
  • * Maximum allowed spread in points (0 = not used).
  • * Risk in percentage (>0 = auto lot). 
  • * Point value for risk percentage.
  • Manual lots - Will be used if Risk above is set to 0.
  • * Max allowed balance drawdown % (100=disabled)
  • * Orders with this Magic number (0=all)
  • * Close orders
  • * Type of stop loss/exit
  • Fixed stop loss (SL).
  • * Take profit method
  • * Close half position
  • Fixed take profit.
  • * Trailing stop.
  • * Trailing step.
  • * Risk/Reward ratio.
  • Break-even (0 = disabled).
  • * Break-even trigger.
    • Fast MA - Default is 12 (5 for Awesome).
    • Slow MA - Default is 26 (34 for Awesome).
    • Signal MA - Default is 9 (not used with Awesome).
    • K.
    • D.
    • Slowing.
    • Period.
    • Slow/fast MA - Default is 200/21. If fast is set to same as slow then only the slow MA filter will be used.
    • Slow/fast MA method - Default is Simple (SMA).
    • Slow/fast MA price type - Default is Close.
    • MA time frame - It is recommended to set this to one time frame higher than the divergence time frame.
    • RSI overbought and oversold levels - The divergence candle must form above/below these levels in order to be valid.
    • RSI Period - Default period is 10.
    • RSI apply to price - RSI level is calculated from this setting. Default is Typical price.
  • * Averaging settings
  • ALERTS (if alert instead of trade is enabled)
    • Set to 'true' for each alert type you would like to activate.
    • * Magic number.
    • * Order comment.

PinkCashCat 2018.09.18 16:52 

Nice EA #iLIKE

sakamotoGM 2018.01.08 16:04 

so far , excellent EA. Few & high quality trades.

Farooq Majoka
Farooq Majoka 2017.11.29 19:17 

A fairly good start with 71 pips off one long eurusd trade that was opened previous night. Looks like an error free neat ea with clear cut methodology. i think brother Flodin has put in more than his bit by providing fairly good .set files for different pairs and timeframes. 4 stars for a good start..will update before 30 days are up !!

5th star added!

It continues to trade so very well!

thanx to brother Flodin for sharing the EA here for a very fair price tag!

Version 2.2 2018.12.09
Please carefully read the blog regarding change #1.

1) stop trade on all pairs if the accumulated floating profit is less than xx% compared with the account balance
2) added support for NFA FIFO regulations (must be when using averaging down)
3) added the possibility to show an on chart information panel when using the averaging down function
Version 2.1 2018.10.22
- changes the time filters to use the broker's server time instead of local computer time
- added the possibility to use minutes as well in the time filters
Version 2.0 2018.10.13
- added possibility to select if to use the RSI filter on first, last or both extremums. Before this update is was only possible to use it on the last extremum.
Version 1.9 2018.09.26
- added trading time filter
Version 1.8 2018.09.24
- added possibility to select separate periods for RSI, CCI and RVI
Version 1.7 2018.09.13
- added logic so that the stop loss value (if set to >0) will also be applied to the averaging orders
Version 1.6 2018.08.16
- added an averaging function
- it is now possible to use separate RSI levels for hidden divergences
- the parameter 'Wait for candle close' has been replaced with Candle shift
Version 1.5 2018.05.02
- Improvement of the double divergence function.
- Added support for opening a trade only in case the divergence also appears on a higher time frame.
Version 1.4 2018.02.02
- added Awesome oscillator
- added possibility for trailing step
Version 1.3 2018.01.15
- bug fix in the double divergence function
- added possibility to close half position at support/resistance, pivot point, ATR level or pin bar
Version 1.2 2018.01.08
- added support for ECN accounts
- added Risk/reward logic
- added support for double divergence
- added combo box for stop loss methods
- added parameter checkup when loading the EA
Version 1.1 2017.11.23
- Minor bug fixes