Trend Signals with TP/SL + Liquidation Filter — Strategy by Jojo67
By Jojo67
Performance Metrics
- Author: Jojo67
- Symbol: BITGET:XRPUSDT.P
- Timeframe: 15 minutes
- Net P&L: +75.26 USDT (+0.75%)
- Win Rate: 69.0%
- Profit Factor: 3.494
- Max Drawdown: 12.92 USDT (0.13%)
- Total Trades: 29
Description
Trend Signals with TP/SL + Adaptive Liquidation FilterResearch & Educational Framework (Synced v3)This script is based on the original Trend Signals with TP/SL concept by UAlgo.The original implementation provides an ATR-based trend detection and risk management structure.This version preserves the core trend logic while extending it with an adaptive volatility-based liquidation-style filter.This publication is intended strictly for research and educational purposes.It should not be considered a finished trading system or financial advice.🔹 Research ObjectiveThis framework explores the following structural question:Can trend reversal signals be improved by requiring statistically meaningful price displacement before allowing entries?The script combines:A state-driven ATR trend engineA volatility-adaptive deviation filterThe purpose of this combination is to study whether requiring both directional confirmation and displacement confirmation can reduce entries during low-momentum ranging environments.The filter is not added for indicator aggregation, but to test interaction between trend state changes and volatility-adjusted extremes.🔹 Structural Components1️⃣ Trend Engine (Original Concept)• Hull-based momentum calculation• ATR-derived dynamic trailing bands• State-based trend reversal logic• Bar-close confirmation (no repainting)Signals occur only when a full trend flip is confirmed.2️⃣ Adaptive Deviation Filter (Extension Layer)• Hybrid SMA + EMA midline• Volatility-adjusted smoothing lengths via ATR ratio• Deviation-based extreme detection• Optional tolerance filtering• Optional clustering requirement• Bar-close confirmationThe filter acts as a confirmation layer, not as a standalone signal generator.3️⃣ Risk & Execution Model• ATR-based Take Profit and Stop Loss (default)• Optional percent-based exits• Fixed position sizing• No pyramidingOrders are executed through TradingView’s native strategy engine.🔹 Reference Backtest ContextTo provide structural context, the following test configuration was used:• Market: XRPUSDT• Timeframe: 15 minutes• Initial Capital: 10,000 USD• Position Size: Fixed 100 USD per trade• Commission: 0.075%• Slippage: 0• Pyramiding: DisabledOne-year sample produced:• 47 trades• Profit Factor ≈ 3.6• Win rate ≈ 68%• Max drawdown ≈ 0.13%• Net profit ≈ 143 USD🔹 Interpretation NotesThis framework is low-frequency by design.The relatively small trade count reflects:• Selective filtering• Conservative position sizing• State-based trend participationThe low drawdown observed in this configuration is primarily the result of small fixed position sizing relative to total capital.Results will vary significantly if position sizing, leverage, market, or timeframe are modified.Users are encouraged to test across:• Multiple assets• Extended historical periods• Alternative volatility conditionsNo performance assumptions should be made based solely on the provided sample.🔹 Intended UseThis script is intended for:• Developers researching trend-filter interaction• Traders studying volatility-adaptive filtering• Educational experimentation with structured risk modelsIt is not optimized for high-frequency scalping or aggressive leveraged trading.🔹 Open-Source PurposeThis script is shared to encourage:• Experimentation• Methodological improvements• Regime detection extensions• Alternative risk modelsConstructive modifications and research iterations are welcome.