WRP ATR Bot - Risk Managed — Strategy by Kkhalid

By Kkhalid

Performance Metrics

Description

OVERVIEWWRP ATR Bot is an independent, long-only Pine strategy for studying ATR trailing-stop signals with explicit position sizing and exits. It is a UT-style approximation and is not the original UT Bot. No closed-source code was reverse engineered.HOW IT WORKSThe script builds a trailing stop from ATR(14) multiplied by the key value. A long entry is generated only after a confirmed candle close crosses above that stop, when no position is open. An exit can occur on an opposite cross, a stop 2 ATR from entry, or a target at 1.65 times the initial risk. Position size targets 1% of current strategy equity at risk and is capped at 100% equity exposure. Fractional shares are rounded down. The strategy properties model 0.05% commission and one tick of slippage; actual costs and fills vary.DEFAULT SETTINGSUT-style key value 2.0; ATR period 14; stop distance 2 ATR; target 1.65R; equity risk 1%; maximum exposure 100%. These are starting values, not optimized recommendations.HOW TO USEAdd the strategy to a chart, select a market and timeframe, review or change the inputs, then inspect Strategy Tester and List of Trades. The historical examples below use ASTS on a 5-minute chart from May 11 to Nov 13, 2026. A BUY marker requires a confirmed close above the trail. While price remains below the red trail without a confirmed cross, the strategy waits; it does not forecast a future entry. Historical signals and simulated fills may differ from live execution.HISTORICAL EXAMPLES (ASTS, 5 MINUTES)Winning trade #241: Nov 10, 2026, entry 19:30 at $32.71; exit 20:10 at $33.63; net +$122.38 (+2.71%).Losing trade #243: Nov 11, 2026, entry 20:50 at $36.04; exit Nov 12, 2026, 14:30 at $34.76; net -$255.19 (-3.65%).FULL TEST RESULTOn the displayed ASTS 5-minute test, May 11-Nov 13, 2026, the strategy produced approximately -24.2% total return, 33% maximum drawdown, 0.82 profit factor, and 35.5% profitable trades (87 of 245 closed trades). Results are historical simulation only and were negative over this sample. They do not establish future performance.LIMITATIONSThis is a backtest/paper-use strategy, not an automated broker bot. It does not submit live orders or route alerts to a broker. Bar-based fills, gaps, intrabar price paths, liquidity, commissions, and slippage can make real results materially different. Test across symbols and regimes, inspect risk, and use paper trading before considering any real-money workflow. No result is guaranteed.

Browse all 5,900+ TradingView Pine Script strategies

View on TradingView