Bollinger Bands Outside Inside

The system relies on the Bollinger Bands indicator, trading when bars close outside the upper and lower lines. Outside the bands range.

Trading Logic

Buy

If the bar closes above the upper Bollinger Bands line, the EA buys. Previous to close above the upper line a previous bar should close below the main line. Basically, crossing the main line means reset the EA to new trade, avoiding consecutive trades when prices cross several times the upper line.

Sell

If the bar closes below the lower Bollinger Bands line, the EA sells. Previous to close below the lower line a previous bar should close above the main line. Basically, crossing the main line means reset the EA to new trade, avoiding consecutive trades when prices cross several times the lower line.

Close

The EA has five options to close the open orders. All of them available to be used at the same time or to be disabled independently:

  • Stop Loss
  • Take Profit
  • Trailing Stop
  • Break-even
  • Main Line Cross

Input Parameters

  • Magic Number
  • Lot Size
  • Stop Loss
  • Take Profit
  • Trailing Stop
  • Break-even
  • Maximum Deviation
  • Bollinger Bands averaging period
  • Bollinger Bands deviation
  • Bollinger Bands shift
  • Bollinger Bands applied price

Download MT4 Expert Advisor