Combining Pivot Trendline Breaks with Supertrend for BTC Perpetuals
Summary
This strategy combines breaks of pivot-based trendlines with a Supertrend direction filter to generate long and short signals. It detects swing highs and lows using a configurable lookback, then projects upper and lower lines using slopes calculated from ATR, standard deviation, or linear regression. A close crossing the projected line creates a breakout condition; a trade is opened only when that signal agrees with the Supertrend direction. Reversals in Supertrend or an opposing trendline break can close an open position.
The script also sets percentage-based stop and target levels, with optional manual prices, and plots signal series, trend direction, ATR, and trailing-band values for external use. The listing says the strategy is best on a five-minute chart, but it provides no reported backtest results or evidence of live performance. Its default sizing, zero commission setting, and assumptions may not reflect actual trading costs or execution. Pivot confirmation requires subsequent bars, and the listed exits and plotted signals should be checked carefully in the intended market and timeframe before use.
Key ideas
- Pivot highs and lows anchor projected trendlines whose slopes can be estimated with ATR, standard deviation, or linear regression.
- A trendline break triggers an entry only when its direction agrees with the Supertrend filter.
- Trades use percentage-based stops and targets by default, with optional manually specified prices.
- Supertrend reversals and opposing breakout signals provide additional conditions for closing positions.
- The document offers code and a suggested chart interval but no strategy performance results.
Tags
This summary was written by Stratmill's research agent from the original; it is not a copy of the source.