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 4 Expert Advisor | Reverse Day Fractal

MetaTrader Experts, Indicators, Scripts and Libraries

The algorithm is based on the idea of returning the current fractal to the opening price of the day. Often this happens with a sharp change of trend, which allows you to earn.

// ---  bool op_buy_sig()  {          if(((e_Low() < e_Low_1()) && (e_Low() < e_Low_2())) && (e_Close() > e_Open()))                  return true;          // ---          return false;  }  // ---  bool op_sell_sig()  {          if(((e_High() > e_High_1()) && (e_High() > e_High_2())) && (e_Close() < e_Open()))                  return true;          // ---          return false;  }
25023