Fibonacci Retracement Levels from Rolling Lookback Highs and Lows
Summary
This script plots a rolling highest high and lowest low using separately configurable lookback periods, then calculates four intermediate Fibonacci retracement levels between those extremes. It also labels the range endpoints and retracement ratios, drawing the levels across the chart from the bar associated with the more recent extreme. A date window controls when the lines are displayed.
The document presents the script as a visual aid for identifying potential retracement levels; it does not define entry, exit, or position-sizing rules. It gives no backtest results or evidence that the levels predict price behavior. Because the high and low update as their lookback windows move, the displayed range and derived levels can change over time, so users should treat them as chart references rather than validated signals.
Key ideas
- Separate lookback periods determine the rolling high and low used as range anchors.
- Four Fibonacci ratios are calculated between the current rolling extremes.
- The levels are chart references, not a complete trade strategy or validated forecast.
- Changing lookback extremes can move the plotted range and its retracement levels.
Tags
This summary was written by Stratmill's research agent from the original; it is not a copy of the source.