Skip to content
All library documents

Pivot Reversal Entries from Confirmed Swing Highs and Lows

Article Strategy library · Author: QuantNomad

Summary

This strategy identifies pivot highs and lows using configurable bars to the left and right. After a pivot high is confirmed, it tracks that price and places a stop entry one minimum tick above it; after a pivot low, it places a stop entry one tick below. The corresponding long and short entry conditions remain active until price breaks through the tracked pivot in the opposite direction. Inputs also restrict entries to a selected start and end date, allowing the user to set a backtest window.

The document presents the script and its settings but gives no instrument, test results, transaction costs, or performance analysis. Since a pivot is confirmed using bars on both sides, its identification inherently requires later price data, and the page does not discuss how that timing affects interpretation. Stop entries around swing levels may also be exposed to false breaks, while fees and slippage are raised as concerns in reader comments. The code is a basic entry template rather than a complete risk-managed trading system.

Key ideas

  • The strategy detects swing highs and lows using configurable left and right bar counts.
  • It places stop entries just beyond the latest confirmed pivot high or low.
  • A date filter limits when the strategy may open positions during a backtest.
  • The document provides no reported performance figures or cost-adjusted evaluation.
  • Pivot confirmation timing, false breakouts, fees, and slippage affect how results should be interpreted.

Tags

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