OPEN-SOURCE SCRIPT
AI Stochastic 14/3 + EMA 50

📊 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.
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的精神,该脚本的作者将其开源,以便交易者可以查看和验证其功能。向作者致敬!您可以免费使用该脚本,但请记住,重新发布代码须遵守我们的网站规则。
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。
开源脚本
秉承TradingView的精神,该脚本的作者将其开源,以便交易者可以查看和验证其功能。向作者致敬!您可以免费使用该脚本,但请记住,重新发布代码须遵守我们的网站规则。
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。