Login / Register
Add a review
Log in
Sign UP
Breakout Trend Lines EA


This Expert Advisor trades when the trend line, or the maximum (minimum) price, breaks. Trend lines and extremes are located according to the specified parameters.In addition to trading, it also displays line data on the chart. Trading occurs when the price goes over the line and the candle closes. Also, the Expert Advisor may not trade if the market is low in volatility, or other filters do not allow it to do so, in order to cut off non-profitable trades. It can set a stop loss on a parabolic, or use a simple trailing stop.

The Expert Advisor is easy to use and can be optimized for various currency pairs and timeframes.

  • Lots – lot size (if 0, the lot will be calculated from the percentage of free funds on the account);
  • Percent – the percentage of available funds to open each new trade (works when Lots=0);
  • OrdersComments-comment on transactions;
  • OrdersFilling-changing the order execution method (some brokers may not support all methods).);
  • Slippage – slippage (the maximum allowable deviation of the price);
  • OpenOrdersDelayBars-delay between opening the next trade;
  • TradeEveryTick-detect signals and trade each tick (true), or only at the close of the bar (false);
  • MaxSpread – the maximum spread for opening a trade (so that the trade is opened when the spread is not higher than this value);
  • Magic-a unique identifier (you need to make it different if several Expert Advisors are running in the same terminal);
  • StopLoss – the closing price of the order when the loss level is reached;
  • TakeProfit – order closing price when the profitability level is reached;
  • EnableAutoCloseautomatic closing of orders with a reverse signal;
  • TrailingStopValue – the value of the trailing stop in points (0 – normal trailing stop off);
  • StopToParabolicStep-parabolic trailing stop (0-disabled);
  • TradingRange – the number of bars in the trading range where the highs and lows will be determined;
  • MinTradingRange – the minimum number of bars in the trading range to find the trend line (0-do not use);
  • StepTradingRange – the step of changing the trading range (active when the MinTradingRange parameter is greater than 0 and less than TradingRange);
  • Distance – the minimum distance from one maximum (minimum) to another for building trend lines;
  • Shift-shift to determine the breakout, relative to the trading range;
  • Shift2-shift to determine the breakout of an inclined trend line;
  • StochasticFilterPeriod-enables filtering of signals by the Stochastic indicator (0 = disabled, greater than 0 – setting the period); 
  • StochasticSlowing-deceleration of the Stochastic indicator;
  • StochasticLevels Stochastic indicator levels (for example, 30 means that the levels will be 30 and 70);
  • StrongFilteringByStochastic – enhanced stochastic signal filtering;
  • CandleFilterStrength – filtering the signal by candles (0-off, 0.1-10 – the required candle strength for the signal);
  • MinLenForCandleFilter minimum candle length for signal filtering;
  • MAFilterPeriod – the period of the moving average indicator for filtering the signal (0-the filter is disabled);
  • MAFilterPeriod2the period of the second moving average for filtering the signal.
  • AdxPeriod – the period of the ADX indicator;
  • MinAdxLevel – minimum level of the ADX indicator (for example, 6.5);
  • TradingStartHour – the hour of the start of trading;
  • TradingEndHour – trading end hour;
  • EnableInfoshow various information from this Expert Advisor on the chart;
  • TrendLinesColor – the color of the line construction;

[spoiler title=”

Created on the basis of the indicator: 


Add review
Reviews ( 0 ):