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 | Bronze Warrioir

MetaTrader Experts, Indicators, Scripts and Libraries

The author of the idea - Scriptor

mq5 code author - barabashkakvn

The Expert Asvisor uses iCCI (Commodity Channel Index, CCI) and iWPR (Williams' Percent Range, %R) indicators, as well as custom DayImpuls indicator. You can open opposite positions, therefore only hedging accounts are recommended.

All three indicators have a common averaging interval - Averaging period for all indicators. For CCI, the level is set as a positive number CCI: positive, negative levels - in the code, it is compared both as + CCI: positive, negative levels, and as CCI: positive, negative levels:

      if(count_sells==0)           if(custom[0]>Inp_DayImpuls_Level && custom[1]<custom[0] && wpr[0]>Inp_WPR_Level_UP && cci[0]>Inp_CCI_Level)             {              OpenPosition(InpLots,POSITION_TYPE_SELL);              return;             }        if(count_buys==0)           if(custom[0]<Inp_DayImpuls_Level && custom[1]>custom[0] && wpr[0]<Inp_WPR_Level_DOWN && cci[0]<-Inp_CCI_Level)             {              OpenPosition(InpLots,POSITION_TYPE_BUY);              return;             }  

WPR has two levels: WPR: level UP and WPR: level DOWN.

DayImpuls custom indicator has a single level: DayImpuls: level.

23073