PAXG 4-Supertend + 40Bars Breakout add

1 916
PAXG 4H Supertrend + 40-Bar Breakout
This strategy is designed for PAX Gold (PAXG) on the 4-hour timeframe, combining Supertrend-based trend identification with a 40-bar closing-price breakout to capture sustained bullish moves.

Strategy Logic
1. Base Long Entry — Supertrend

Opens a long position when the Supertrend flips from bearish to bullish.
Enters only when no position is currently open.
Uses the Supertrend settings of ATR Length 10 and Multiplier 4.0 by default.

2. Breakout Add-On — 40-Bar Closing High

Adds a position when the market is already in a long trade and the current candle closes above the highest closing price of the previous 40 completed candles.
Adds an additional position equivalent to 30% of current strategy equity by default.
Allows only one breakout add-on per trade.

3. Exit — Bearish Supertrend Reversal


Closes the entire long position when the Supertrend flips from bullish to bearish.
Includes an optional backtest end-date exit.
Key Features
Designed for 4-hour PAXG charts.
Trend-following entries using Supertrend.
Closing-price breakout confirmation to add to winning positions.
Configurable ATR settings, breakout lookback, and add-on percentage.
Optional backtest date filter.
Includes a configurable commission assumption of 0.03% per order.
Uses next-bar-open order execution settings for strategy entries and exits.

Risk Disclaimer

This is a long-only trend-following strategy intended for backtesting and research. Its performance depends on market conditions, execution assumptions, fees, and slippage. Backtest results do not guarantee future performance. Test the strategy thoroughly before using it with real capital.

Exención de responsabilidad

La información y las publicaciones no constituyen, ni deben considerarse como, asesoramiento o recomendaciones financieras, de inversión, de trading u otro tipo, proporcionadas o respaldadas por TradingView. Obtenga más información en Condiciones de uso.