Expert Advisors • Indicators • Scripts • Libraries

MQL.RobotFX.org is the biggest collection of MetaTrader expert advisors (MT5 & MT4), indicators, scripts and libraries that can be used to improve trading results, minimize risks or simply automate trading tasks

MetaTrader 5 Expert Advisor | Bruno

MetaTrader Experts, Indicators, Scripts and Libraries

The author of the idea - Scriptor

mq5 code author - barabashkakvn

The EA contains five strategies: 

  1. by iADX indicator (Average Directional Movement Index, ADX)
       if(axd_plusdi[1]>axd_minusdi[1] && axd_plusdi[1]>20.0)        lot_buy*=InpSignalRatio;     else if(axd_plusdi[1]<axd_minusdi[1] && axd_plusdi[1]<40.0)        lot_sell*=InpSignalRatio;  

  2. by iMA (Moving Average, MA) and iStochastic (Stochastic Oscillator) indicators
       if(ma_one[1]>ma_two[1] && sto_main[1]>sto_signal[1] && sto_main[1]<80.0)        lot_buy*=InpSignalRatio;     else if(ma_one[1]<ma_two[1] && sto_main[1]<sto_signal[1] && sto_main[1]>20.0)        lot_sell*=InpSignalRatio;  
  3. by iMACD (Moving Average Convergence/Divergence, MACD)) indicator
       if(macd_main[1]>0.0 && macd_main[1]>madc_signal[1])        lot_buy*=InpSignalRatio;      else if(macd_main[1]<0.0 && macd_main[1]<madc_signal[1])        lot_sell*=InpSignalRatio;   

  4. by iMA (Moving Average, MA) and iSAR (Parabolic SAR) indicators
       if(ma_one[1]>ma_two[1] && sar[1]>sar[2])        lot_buy*=InpSignalRatio;      else if(ma_one[1]<ma_two[1] && sar[1]<sar[2])        lot_sell*=InpSignalRatio;   

Each strategy increases the initial lot (Lots) Signal ratio times when a signal is activated. If BUY and SELL signals are activated simultaneously, both are ignored.

BUY open signal is also SELL close one and vice versa.

22933