House Rules SuperTrend Strategy (ATR-Based, Non-Repainting) by JaxonJackFX
By JaxonJackFX
Performance Metrics
- Author: JaxonJackFX
- Symbol: OANDA:XAUUSD
- Timeframe: 1 hour
- Net P&L: −476.77 USD (−4.75%)
- Win Rate: 34.0%
- Profit Factor: 0.71
- Max Drawdown: 528.42 USD (5.28%)
- Total Trades: 597
Description
📝 DESCRIPTIONOverviewThe House Rules SuperTrend Strategy is a clean, rule-based trading strategy built using Pine Script® v6.It is designed for transparent backtesting, non-repainting signals, and simple trend-following execution across all markets and timeframes.This strategy uses TradingView’s built-in SuperTrend indicator, which is derived from Average True Range (ATR), to identify trend direction changes and generate long and short trades.How the Strategy WorksLong EntryA long position is opened when the SuperTrend flips from bearish to bullishThis confirms a potential upward trend shiftShort EntryA short position is opened when the SuperTrend flips from bullish to bearishThis confirms a potential downward trend shiftExitsPositions are closed when either:The opposite SuperTrend signal appears, orThe ATR-based Stop Loss or Take Profit is reached (if enabled)All signals are calculated on confirmed candle closes only, ensuring accurate and fair backtesting.Risk ManagementOptional ATR-based Stop LossOptional ATR-based Take ProfitPosition sizing based on percentage of equityCommission included for realistic performance resultsAll parameters are user-adjustable from the settings panel.Backtesting & TransparencyThis is a strategy, not an indicatorNo repaintingNo future data usageNo hidden filtersNo lookahead biasFully compatible with TradingView’s Strategy TesterUsers are encouraged to test different symbols, timeframes, and parameter values to suit their trading style.Recommended UseThis strategy can be used on:CryptocurrenciesForexStocksIndicesFuturesIt performs best in trending market conditions and may underperform during low-volatility or ranging markets.DisclaimerThis script is provided for educational and research purposes only.It is not financial advice. Always test and validate strategies before using them in live trading.