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 | Brakeout Trader v1

Author of the idea — Volodymyr Neborachko, Author of the MQL5 code — barabashkakvn. 

The Expert Advisor opens a deal in the breakout direction — the breakout level should be set manually. It is possible to configure the EA to trade only Buy or only Sell:

MetaTrader Experts, Indicators, Scripts and Libraries 

Breakout is determined based on the Close prices of the first and second bar. Upward breakout condition:

//--- Buy
   if(iClose(1)>AppPrice && iClose(2)<=AppPrice)

Downward breakout condition:

//--- Sell
   if(iClose(1)<AppPrice && iClose(2)>=AppPrice)

The Expert Advisor calculates the lot value dynamically depending on the specified risk percent of free margin.

17582

Best MetaTrader Indicators + Profitable Expert Advisors