• Overview
  • Reviews
  • Comments (18)

Breakout and pullback

After breaking through the high or low of the trading range, the price often comes back about half the distance. This EA determines a good place to enter the market by trend, it opens a trade after a small rollback towards the trend. The number of candles in a trading range can be adjusted, like many other parameters. The trading range for determining the high and low depends on the current volatility of the market. The EA takes that into account, it can also automatically determine the appropriate value of stop loss and take profit.


  • The EA can work on almost any currency pair and timeframe;
  • Trades automatically with no human intervention;
  • No need in a large initial deposit;
  • Does not use risky trading methods;
  • Always sets a stop-loss to preserve the deposit;
  • Both a fixed lot and a free margin percentage are used;
  • It is possible to set time limitations for the EA operation (to disable trading during periods of low volatility).

Important: any EA needs to be optimized before the live trading, and after some time of successful trading. Do not forget to do that.

Input Parameters

  • Lots - lot size;
  • Percentage of free money - the percentage of free margin to open each new trade (if Lots=0, then the lot will be calculated as a percentage of the free margin of the account), recommended 1-10;
  • max spread - the maximum spread for opening trades (on the accounts with floating spread, for the trade to open when the spread is not too large);
  • Magic - unique Identifier (it must be different for each instance of the EA in the terminal);
  • Take Profit - order closing price when the profitability level is reached;
  • Stop loss - order closing price when the loss level is reached;
  • Dynamic TP and SL - if enabled (true), then Take profit and Stop loss are calculated based on the width of the broken trading range;
  • Factor dynamic TP and SL - the coefficient of the dynamic take profit and stop loss;
  • Number range bars - the number of bars of the trading range, where the highs and lows will be determined;
  • Shift - shift to the right relative to the trading range;
  • Timeframe ADX - the timeframe of the ADX indicator (specified in minutes: 15 = 15-minute, 60 = hourly);
  • Period ADX - period of the ADX indicator.;
  • ADX and number bars relation - dependence of the trading range value on the ADX indicator;
  • Level ADX - ADX indicator level, above which trading is allowed;
  • period Williams Percent Range - period of the Williams Percent Range indicator;
  • Timeframe MA - Moving Average indicator timeframe;
  • Accuracy - accuracy of trade opening after a rollback (the higher the parameter the less trades are opened);
  • MACD fast - fast EMA period of the MACD indicator;
  • MACD slow - slow EMA period of the MACD indicator;
  • Period RSI - RSI indicator period;
  • Count bars for divers - amount of bars to calculate the divergences;
  • Stiffness divergence - stiffness of divergences (the higher the parameter the rarer the trades are opened);
  • Bollinger Bands period - period of the Bollinger Bands indicator;
  • Bollinger deviation - deviations of Bollinger Bands;
  • Hour start place orders - the hour to start trading by server time;
  • Hour stop place orders - the hour to stop opening new trades by server time;
  • ShowInfo - display information (true - display, false - hide), recommended to disable during optimization to make the tests faster.
No reviews