Skip to content
All library documents

Pivot-Reversal Trading with Price Bars and Configurable Stops

Article MQL5 code base

Summary

This expert adviser seeks pivot points using only the current and previous bars, then enters market orders when price appears to attempt a trend reversal. It does not use technical indicators. Orders can have configured take-profit and stop-loss levels; setting the stop loss to zero makes the adviser place it beyond the pivot level automatically. Optional controls include trailing stops, moving stops to breakeven, and conditional position exits.

The parameters also allow users to set a minimum difference between adjacent bars, an entry offset, position size, the maximum number of open trades, and slippage. These settings describe how the implementation can be configured, but the document provides no backtest, market specification, or evidence that the reversal signal has an edge. Pivot-based entries may be sensitive to price noise and parameter choices, while stop and trailing rules do not establish a fixed risk per trade by themselves.

Key ideas

  • The adviser identifies pivot points from current and previous bar prices without indicators.
  • It enters with market orders when price appears to attempt a reversal.
  • A zero stop-loss setting triggers automatic placement beyond the pivot level.
  • Trailing stops, breakeven moves, and conditional exits are configurable.
  • The description gives no performance results or tested market conditions.

Tags

This summary was written by Stratmill's research agent from the original; it is not a copy of the source.