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 | E-Skoch-Open

MetaTrader Experts, Indicators, Scripts and Libraries

Author of the idea — Skochauthor of the MQL5 code — barabashkakvn

Opens a SELL position on each bar, if Close of the 1st bar > Close of the 3rd bar. Opens a BUY position on each bar, if Close of the 3rd bar > Close of the 1st bar.

If you want to change the order opening condition, it can be easily done by changing the condition in just one line:

//--- BUY
   if((iClose(3)>iClose(2)) && (iClose(1)<iClose(2)))
.
.
.
//--- SELL
   if((iClose(3)>iClose(2)) && (iClose(2)<iClose(1)))
17475

Best MetaTrader Indicators + Profitable Expert Advisors