The author of the ideaΒ –Β
mq5 code authorΒ –Β
The EA contains five strategies:Β
- 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;
- 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;
- 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;
- 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.