Screener › Phase 1: Intraday Premium › Heikin Ashi + ATR Trailing Stop Crossover (1:2 RR)

Heikin Ashi + ATR Trailing Stop Crossover (1:2 RR)

Intraday Premium
← Back to Screeners
Heikin Ashi + ATR Trailing Stop Crossover (1:2 RR)\n\nSTRATEGY DESCRIPTION\nPorted from a TradingView Pine v6 strategy ('ROHIT Bot - Heikin Ashi | 1:2 RR'). Builds a UT-Bot style ATR trailing stop off the Heikin Ashi close (or raw close) and fires a signal the instant price crosses that trailing stop. Fires both bullish (BUY) and bearish (SELL) signals from the same underlying logic.\n\nNOTE ON SCOPE: The original Pine script's live position-tracking/pyramiding gating (strategy.position_size <= 0 / >= 0) and its running 'pos' state variable have no meaning in a stateless screener (no open-position tracking here) and were intentionally NOT ported - this is a pure entry screener, consistent with how every other strategy in this system works (signal generation only, no trade-management or exit simulation).\n\nCORE LOGIC (Step by Step)\n\nSTEP 1: src = Heikin Ashi close (or raw close if use_heikin_ashi=False).\n\nSTEP 2: Calculate ATR(atr_period) using Wilder's RMA (matches Pine's ta.atr exactly). nLoss = key_value * ATR.\n\nSTEP 3: Recursive ATR trailing stop:\nIF src > prevStop AND prevSrc > prevStop: stop = max(prevStop, src - nLoss)\nELIF src < prevStop AND prevSrc < prevStop: stop = min(prevStop, src + nLoss)\nELIF src > prevStop: stop = src - nLoss\nELSE: stop = src + nLoss\n\nSTEP 4: above = crossover(src, stop); below = crossover(stop, src).\n\nSTEP 5: BUY signal - src > stop AND above (price crosses above the trailing stop).\nSELL signal - src < stop AND below (price crosses below the trailing stop).\n\nSTEP 6: Attach a fixed 1:2 risk/reward SL/TP off the raw close, matching the Pine script's strategy.exit block (stop_loss_percent / take_profit_percent, default 0.5% / 1.0%).\n\nOPTIONAL FILTERS (params):\n- key_value: float, default 1.0 -> ATR multiplier / sensitivity\n- atr_period: int, default 1 -> ATR lookback period\n- use_heikin_ashi: bool, default True -> use HA close vs raw close\n- stop_loss_percent: float, default 0.5 -> % SL off entry close\n- take_profit_percent: float, default 1.0 -> % TP off entry close\n\nWHY THIS MATTERS\n- ATR trailing stops adapt to volatility, tightening in calm markets and widening in volatile ones\n- Heikin Ashi smoothing filters out noise so the trailing stop reacts to trend shifts rather than single-candle wicks\n- Fixed 1:2 RR keeps risk management consistent and mechanical across every signal
📈 0 Stocks Found
🕒 OHLC Last Updated: No data yet
📊 Screener Type: Intraday Premium
📈 Stocks Found: 0
💡 Results are updated automatically by cron job.
🔍

No stocks found

No cached results found for this strategy.

OHLC Last Updated: No data yet

Try Another Screener