OPEN-SOURCE SCRIPT

AI Stochastic 14/3 + EMA 50

614
📊 Stochastic 14/3 + EMA 50 — Signal Tracker with Full Dashboard

This indicator generates LONG and SHORT signals based on Stochastic %K/%D crossover in extreme zones, filtered by EMA 50 trend direction. Every signal is tracked with automatic TP and SL levels, and a comprehensive performance dashboard shows real-time stats across multiple time periods.

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

🔹 STRATEGY LOGIC

LONG Entry:
• Stochastic %K was below 20 (oversold)
• %K crosses above %D
• Price is above EMA 50 (uptrend confirmed)

SHORT Entry:
• Stochastic %K was above 80 (overbought)
• %K crosses below %D
• Price is below EMA 50 (downtrend confirmed)

Trade Management:
• SL: 0.5% opposite side (adjustable)
• TP: 1.5% favour side (adjustable)
• Risk:Reward = 1:3
• No new trade while one is active

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

🔹 DASHBOARD (Top Right)

Live performance table with 4 columns:
• ALL — Full history stats
• 30D — Last 30 days
• 90D — Last 90 days
• 180D — Last 6 months

Each column tracks:
✅ Total Trades
✅ TP Wins / SL Losses
✅ Win Rate %
✅ Net PnL %
✅ Max Consecutive Losses
✅ 7x Consecutive Loss Counter

Color coded:
• Win Rate: Green (≥25%) / Red (<25%)
• PnL: Green (positive) / Red (negative)
• Max C.Loss: Green (<7) / Orange (7-9) / Red (10+)
• 7x Loss: Green (0 hit) / Red (1+ hit)

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

🔹 VISUAL FEATURES

📌 LONG / SHORT labels on entry
📌 TP / SL labels with price levels
📌 Green TP line + Red SL line + White entry line
📌 Consecutive streak counter (SL — 2, SL — 3, TP — 2, etc.)
📌 Only shows streaks when back-to-back same result

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

🔹 SETTINGS

• SL % — Stop loss percentage (default: 0.5%)
• TP % — Take profit percentage (default: 1.5%)
• Both adjustable in indicator settings

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

🔹 BEST USED ON

• Timeframe: 15min
• Pairs: BTC, ETH, BNB, ADA, SOL, AVAX, XRP
• Market: Crypto perpetual futures
• Works on any pair — check the dashboard for each pair's performance before trading

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

🔹 ALERTS

Built-in alert conditions:
• "Long Signal" — fires on confirmed LONG entry
• "Short Signal" — fires on confirmed SHORT entry
• "TP Hit" — fires when take profit is reached
• "SL Hit" — fires when stop loss is reached

Supports webhook for automated trading.

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

⚠️ DISCLAIMER
This indicator is for educational and informational purposes only. Past performance does not guarantee future results. Always manage your risk and never trade with money you cannot afford to lose. The author is not responsible for any financial losses.

คำจำกัดสิทธิ์ความรับผิดชอบ

ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมใน ข้อกำหนดการใช้งาน