IntradayAFL (no‑repaint)

This invite-only strategy is built upon the popular Supertrend concept and is tailored for intraday trading in Crude Oil, Natural Gas (MCX), F&O, Equity, Forex, and Crypto markets.
While the base logic utilizes ATR-based trend direction, this version has been enhanced with:
🔍 Key Enhancements:
✅ Buy/Sell Labels with Price & Arrows: Shows real-time entries based on confirmed Supertrend crossovers.
✅ Non-Repainting Confirmation: Uses only confirmed bars (barstate.isconfirmed) to avoid repaint issues.
✅ Background Fill Logic: Distinguishes up/down trends visually for better decision-making.
✅ Minimal Lag ATR Settings: Tuned default settings work well across volatile markets.
✅ Multi-Asset Ready: Works across instruments with varying volatility, including MCX & Crypto.
💡 Use Case:
Ideal for day traders or scalpers who rely on trend-following confirmation rather than lagging multi-indicator systems. This script provides a visual interface with minimal distraction and high adaptability.
⚙️ Logic Overview:
- Uses confirmed crossover/crossunder of price with the modified Supertrend line.
- Avoids repainting by relying on fully confirmed candles only.
- On-chart arrows and labels reduce the need for constant indicator monitoring.
⚠️ Disclaimer:
This script is a visual aid for technical analysis. Past performance does not guarantee future results. Use proper risk management. This is not financial advice.
For educational use only.
📅 Update Version: 1.1
🛠️ What's New in This Update:
✅ Visual Performance Stats Panel (Top-Right Corner):
Displays key live trading stats for your current/last position:
🟢 Last Buy/Sell price
🎯 Dynamic Target (based on ATR multiplier)
🔻 Trailing Stop Loss value (Supertrend-based)
📈 Real-time Profit/Loss % since entry
✅ High-Contrast Table Design:
Stats panel now uses a darker background and brighter text for excellent readability across all chart themes.
✅ Improved Logic & Stability:
Fixed internal state handling for buy/sell tracking
Ensured consistent crossover/crossunder detection by assigning results to variables
✅ Cleaner Labels & Plotting:
Polished buy/sell arrow visuals and labels with price tags
No repainting, even during intrabar formation
✅ Compatible with Pine Script v6
Uses the latest Pine scripting conventions and rendering
We’re excited to announce a major functional update to the IntradayAFL (no-repaint) TradingView indicator! This release enhances trade tracking, real-time profit/loss stats, and fixes previous inconsistencies in short trade detection. Here's what’s new:
🆕 What's New in This Version
✅ Fully Dynamic Trade Lifecycle Tracking
Introduced a robust trade direction engine (tradeDir) with distinct states for long, short, and flat.
Captures entry, target, trailing SL, and exit price dynamically.
Tracks and displays whether the target or stop-loss was hit after entry.
🎯 Fix: Short Trade "Target Hit" Status
Previously, short trades failed to show "Target Hit" even when achieved.
Now both long and short trades reliably recognize when targets are hit, giving accurate end-state info.
📊 Improved Stats Panel (Top Right)
Shows Live or Booked P/L in points and percentage.
Clearly indicates Trade Side, Entry, Target, Trailing SL, and Trade Status (Call Open, Target Hit, SL Hit).
Uses color-coded visual cues (green, red, orange) for quick P/L and status interpretation.
Panel size and font optimized for clarity and compactness.
🔔 Alerts
Buy/Sell alerts remain the same but continue to work seamlessly with updated logic.
🔧 Other Enhancements
Better handling of na conditions to prevent false triggers.
Optimized variable memory using varip and reduced table flickering.
Clearer labeling on Buy/Sell signals using emoji-like ₹ price tags.
⚙️ How to Use (Unchanged):
Wait for a confirmed Buy/Sell Signal.
View entry, target, trailing SL, and real-time stats in the panel.
Optionally toggle the target line and trailing SL line from settings.
Works across any intraday time frame.
Yalnızca davetli komut dosyası
Bu komut dosyasına yalnızca yazar tarafından yetkilendirilen kullanıcılar erişebilir ve bu genellikle ödeme gerektirir. Bu komut dosyasını favorilerinize ekleyebilirsiniz, ancak yalnızca yazarından izin istedikten ve aldıktan sonra kullanabilirsiniz — daha fazla bilgi burada. Daha fazla ayrıntı için yazarın aşağıdaki talimatlarını izleyin veya doğrudan rdewanji ile iletişime geçin.
TradingView, yazarına tam olarak güvenmediğiniz ve nasıl çalıştığını anlamadığınız sürece bir komut dosyası için ödeme yapmanızı veya kullanmanızı ÖNERMEZ. Ayrıca topluluk komut dosyaları bölümümüzde ücretsiz, açık kaynaklı alternatifler bulabilirsiniz.
Yazarın talimatları
Uyarı: Erişim talebinde bulunmadan önce lütfen yalnızca davetli komut dosyaları kılavuzumuzu okuyun.
Feragatname
Yalnızca davetli komut dosyası
Bu komut dosyasına yalnızca yazar tarafından yetkilendirilen kullanıcılar erişebilir ve bu genellikle ödeme gerektirir. Bu komut dosyasını favorilerinize ekleyebilirsiniz, ancak yalnızca yazarından izin istedikten ve aldıktan sonra kullanabilirsiniz — daha fazla bilgi burada. Daha fazla ayrıntı için yazarın aşağıdaki talimatlarını izleyin veya doğrudan rdewanji ile iletişime geçin.
TradingView, yazarına tam olarak güvenmediğiniz ve nasıl çalıştığını anlamadığınız sürece bir komut dosyası için ödeme yapmanızı veya kullanmanızı ÖNERMEZ. Ayrıca topluluk komut dosyaları bölümümüzde ücretsiz, açık kaynaklı alternatifler bulabilirsiniz.
Yazarın talimatları
Uyarı: Erişim talebinde bulunmadan önce lütfen yalnızca davetli komut dosyaları kılavuzumuzu okuyun.