Bruno – EA MetaTrader 5

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.

  Slingshot - indicator MetaTrader 5

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


https://www.mql5.com/ru/code/22933

πŸ“ˆ ROBOTFX MetaTrader Expert Advisors and Indicators to maximize profits and minimize the risks