Harmonic Patterns Pro 1.0 [abusuhil]# Harmonic Patterns Pro 1.0
## 📊 Professional Harmonic Pattern Detector - All 10 Classical Models
**Harmonic Patterns Pro** is a comprehensive, non-repainting indicator that automatically detects and displays all 10 classical harmonic patterns in real-time. Built with precision and professional traders in mind, this indicator helps you identify high-probability reversal zones based on Fibonacci ratios.
---
## ✨ Key Features
### 🎯 10 Harmonic Patterns Supported
- **Gartley** - The most common harmonic pattern
- **Bat** - High accuracy with tight stop loss
- **Butterfly** - Extended pattern with strong reversal potential
- **Crab** - Extreme extension pattern (1.618 XA)
- **Deep Crab** - Deeper B retracement variant
- **Shark** - Unique C point extension pattern
- **Cypher** - C extends beyond A, tight stop loss
- **AB=CD** - Simple equal-leg pattern
- **Alternate Bat** - Bat variation with D beyond X
- **Three Drives** - Three equal impulse moves
### 🔒 100% Non-Repainting
- Patterns are drawn **only after completion** (candle close)
- Once drawn, patterns **stay permanently** on the chart
- No future data used - completely reliable for live trading
- What you see in history is what you get in real-time
### 🎚️ 5 Sensitivity Levels
Choose the detection accuracy that fits your trading style:
- **Strict (±2%)** - Highest accuracy, fewer signals
- **Medium-Strict (±5%)** - Good balance
- **Medium (±8%)** - Recommended for most traders
- **Medium-Loose (±12%)** - More patterns detected
- **Loose (±18%)** - Maximum pattern detection
### 🎨 Advanced Visual Design
- **PRZ Zone**: Automatic Potential Reversal Zone highlighting
- **Pattern Fill**: Shaded area between pattern lines for clarity
- **XABCD Points**: Clear labeling of all pivot points
- **Color Coded**: Green for bullish, red for bearish patterns
- **Customizable**: Adjust colors, opacity, line styles, label sizes
### 📈 Complete Trading System
- **Entry Signals**: Clear BUY/SELL labels at point D
- **3 Profit Targets**: TP1 (38.2%), TP2 (61.8%), TP3 (100% CD)
- **Stop Loss**: Automatically calculated and displayed
- **Entry Timing**: Option to enter at D or next candle
- **Pattern Names**: Each pattern labeled (e.g., "Bullish Bat")
### 🧹 Simplified Mode
- Toggle to hide all decorations
- Shows only: BUY/SELL signals, targets, and stop loss
- Perfect for experienced traders who want a clean chart
### 🚫 Anti-Overlap System
- **Minimum Bars Between Patterns** setting
- Prevents cluttered charts with overlapping patterns
- Ensures only the most recent, valid patterns are displayed
- Adjustable from 5 to 50 bars
### 🔔 Smart Alert System
- **3 Alert Types**: Buy Signal, Sell Signal, Any Signal
- **Signal Tester Compatible**: Works with backtesting tools
- **alertcondition()** method for TradingView alerts
- Get notified immediately when patterns complete
---
## 🚀 Quick Start Guide
### Recommended Settings (Beginners)
```
ZigZag Length: 12
Sensitivity: Medium
PRZ Opacity: 40
Fill Opacity: 30
Entry on Next Candle: false
Simplified Mode: false
Min Bars Between Patterns: 15
```
### For Live Trading
```
Entry on Next Candle: true ← Important!
```
### For Clean Charts
```
Simplified Mode: true
```
---
## 📊 Best Practices
### Timeframes
- **Best**: 4H, Daily, Weekly
- **Good**: 1H, 2H
- **Acceptable**: 15m, 30m
### Markets
Works on **all markets**: Forex, Stocks, Crypto, Commodities, Indices
### Risk Management
- Risk per trade: 1-2% of account
- Stop Loss: Use indicator's calculated SL
- Profit Targets: Scale out at TP1, TP2, TP3
- Minimum R:R: 1:2
---
## 🎓 Trading Strategies
### Strategy 1: Conservative
- Sensitivity: Strict
- Entry on Next Candle: true
- Confirm with RSI/MACD
### Strategy 2: Aggressive
- Sensitivity: Medium-Loose
- Quick entry and exit
- Scale out at TP1, TP2
### Strategy 3: Swing Trading
- Sensitivity: Strict
- Timeframe: 4H, Daily
- Hold to TP3
### Strategy 4: Multi-Timeframe
- Identify pattern on higher timeframe
- Enter on lower timeframe pattern
---
## 🔔 Setting Up Alerts
1. Right-click on chart → **"Add Alert"**
2. Condition → **"Harmonic Patterns Pro 1.0 "**
3. Choose: Buy Signal / Sell Signal / Any Signal
4. Click **"Create"**
---
## ❓ FAQ
**Q: Does this indicator repaint?**
A: No. 100% non-repainting.
**Q: What's the best sensitivity setting?**
A: Start with "Medium".
**Q: How many patterns should I expect?**
A: Daily: 1-3/month. 1H: 5-10/week.
**Q: Can I use this for backtesting?**
A: Yes! Compatible with Signal Tester.
**Q: Should I trade every pattern?**
A: No. Focus on quality setups.
**Q: What's the typical win rate?**
A: Beginners: 40-50%, Advanced: 65-75%.
---
## 🎯 Why Choose This Indicator?
✅ **Comprehensive** - All 10 patterns in one
✅ **Reliable** - 100% non-repainting
✅ **Professional** - Clean, customizable design
✅ **Complete** - Entry, targets, stop loss included
✅ **User-Friendly** - Easy to use
✅ **Flexible** - Works on all markets and timeframes
---
## ⚠️ Disclaimer
This indicator is a tool for technical analysis and should not be considered financial advice. Trading involves substantial risk of loss. Always use proper risk management and never risk more than you can afford to lose.
---
## 🏆 Final Words
**Harmonic Patterns Pro 1.0** combines classical harmonic pattern theory with modern automation. Start identifying high-probability reversal zones today!
**Version**: 1.0 | **Author**: | **Last Updated**: October 2025
**Happy Trading! 📊✨**
---
---
---
# ═══════════════════════════════════════════════════════════
# 🌟 النسخة العربية | ARABIC VERSION 🌟
# ═══════════════════════════════════════════════════════════
---
---
---
# مؤشر نماذج الهارمونيك الاحترافي 1.0
## 📊 كاشف احترافي لنماذج الهارمونيك - جميع النماذج العشرة الكلاسيكية
**مؤشر نماذج الهارمونيك الاحترافي** هو مؤشر شامل وغير معاد الرسم يكتشف ويعرض تلقائياً جميع نماذج الهارمونيك الكلاسيكية العشرة في الوقت الفعلي. تم بناؤه بدقة ومع وضع المتداولين المحترفين في الاعتبار، يساعدك هذا المؤشر على تحديد مناطق الانعكاس عالية الاحتمالية بناءً على نسب فيبوناتشي.
---
## ✨ الميزات الرئيسية
### 🎯 دعم 10 نماذج هارمونيك
- **Gartley (جارتلي)** - النموذج الأكثر شيوعاً
- **Bat (الخفاش)** - دقة عالية مع وقف خسارة ضيق
- **Butterfly (الفراشة)** - نموذج ممتد مع إمكانية انعكاس قوية
- **Crab (السلطعون)** - نموذج امتداد متطرف (1.618 XA)
- **Deep Crab (السلطعون العميق)** - نسخة أعمق من السلطعون
- **Shark (القرش)** - نموذج فريد بامتداد النقطة C
- **Cypher (السايفر)** - C تمتد بعد A، وقف خسارة ضيق
- **AB=CD** - نموذج بسيط بأرجل متساوية
- **Alternate Bat (الخفاش البديل)** - نسخة من الخفاش مع D بعد X
- **Three Drives (الدفعات الثلاث)** - ثلاث حركات دفع متساوية
### 🔒 عدم إعادة الرسم 100%
- يتم رسم النماذج **فقط بعد الاكتمال** (إغلاق الشمعة)
- بمجرد الرسم، تبقى النماذج **بشكل دائم** على الشارت
- لا يتم استخدام بيانات مستقبلية - موثوق تماماً للتداول المباشر
- ما تراه في التاريخ هو ما تحصل عليه في الوقت الفعلي
### 🎚️ 5 مستويات حساسية
اختر دقة الكشف التي تناسب أسلوب التداول الخاص بك:
- **Strict (صارم ±2%)** - أعلى دقة، إشارات أقل
- **Medium-Strict (متوسط-صارم ±5%)** - توازن جيد
- **Medium (متوسط ±8%)** - موصى به لمعظم المتداولين
- **Medium-Loose (متوسط-مرن ±12%)** - اكتشاف المزيد من النماذج
- **Loose (مرن ±18%)** - أقصى اكتشاف للنماذج
### 🎨 تصميم مرئي متقدم
- **منطقة PRZ**: تمييز تلقائي لمنطقة الانعكاس المحتملة
- **تظليل النموذج**: منطقة مظللة بين خطوط النموذج للوضوح
- **نقاط XABCD**: تسمية واضحة لجميع نقاط المحور
- **ترميز لوني**: أخضر للنماذج الصاعدة، أحمر للنماذج الهابطة
- **قابل للتخصيص**: ضبط الألوان، الشفافية، أنماط الخطوط، أحجام الملصقات
### 📈 نظام تداول كامل
- **إشارات الدخول**: ملصقات BUY/SELL واضحة عند النقطة D
- **3 أهداف ربح**: TP1 (38.2%)، TP2 (61.8%)، TP3 (100% CD)
- **وقف الخسارة**: يتم حسابه وعرضه تلقائياً
- **توقيت الدخول**: خيار للدخول عند D أو الشمعة التالية
- **أسماء النماذج**: كل نموذج مُسمى (مثل "Bullish Bat")
### 🧹 الوضع المبسط
- تبديل لإخفاء جميع الزخارف
- يعرض فقط: إشارات BUY/SELL، الأهداف، ووقف الخسارة
- مثالي للمتداولين ذوي الخبرة الذين يريدون شارت نظيف
### 🚫 نظام منع التداخل
- إعداد **الحد الأدنى من الشموع بين النماذج**
- يمنع الشارت المزدحم بالنماذج المتداخلة
- يضمن عرض النماذج الأحدث والصالحة فقط
- قابل للتعديل من 5 إلى 50 شمعة
### 🔔 نظام تنبيهات ذكي
- **3 أنواع تنبيهات**: إشارة شراء، إشارة بيع، أي إشارة
- **متوافق مع Signal Tester**: يعمل مع أدوات الاختبار الخلفي
- طريقة **alertcondition()** لتنبيهات TradingView
- احصل على إشعار فوري عند اكتمال النماذج
---
## 🚀 دليل البدء السريع
### الإعدادات الموصى بها (للمبتدئين)
```
ZigZag Length: 12
Sensitivity: Medium
PRZ Opacity: 40
Fill Opacity: 30
Entry on Next Candle: false
Simplified Mode: false
Min Bars Between Patterns: 15
```
### للتداول المباشر
```
Entry on Next Candle: true ← مهم!
```
### للشارت النظيف
```
Simplified Mode: true
```
---
## 📊 أفضل الممارسات
### الأطر الزمنية
- **الأفضل**: 4 ساعات، يومي، أسبوعي
- **جيد**: ساعة، ساعتين
- **مقبول**: 15 دقيقة، 30 دقيقة
### الأسواق
يعمل على **جميع الأسواق**: الفوركس، الأسهم، العملات الرقمية، السلع، المؤشرات
### إدارة المخاطر
- المخاطرة لكل صفقة: 1-2% من الحساب
- وقف الخسارة: استخدم SL المحسوب من المؤشر
- أهداف الربح: خذ أرباح تدريجية عند TP1، TP2، TP3
- الحد الأدنى للمخاطرة/العائد: 1:2
---
## 🎓 استراتيجيات التداول
### الاستراتيجية 1: المحافظة
- الحساسية: Strict (صارم)
- الدخول من الشمعة التالية: true
- التأكيد مع RSI/MACD
### الاستراتيجية 2: العدوانية
- الحساسية: Medium-Loose (متوسط-مرن)
- دخول وخروج سريع
- أخذ أرباح تدريجية عند TP1، TP2
### الاستراتيجية 3: السوينج
- الحساسية: Strict (صارم)
- الإطار الزمني: 4 ساعات، يومي
- الاحتفاظ حتى TP3
### الاستراتيجية 4: متعدد الأطر الزمنية
- تحديد النموذج على إطار زمني أعلى
- الدخول على نموذج إطار زمني أقل
---
## 🔔 إعداد التنبيهات
1. انقر بزر الماوس الأيمن على الشارت → **"Add Alert"**
2. الشرط → **"Harmonic Patterns Pro 1.0 "**
3. اختر: Buy Signal / Sell Signal / Any Signal
4. اضغط **"Create"**
---
## ❓ الأسئلة الشائعة
**س: هل يعيد المؤشر الرسم؟**
ج: لا. عدم إعادة الرسم 100%.
**س: ما هو أفضل إعداد للحساسية؟**
ج: ابدأ بـ "Medium" (متوسط).
**س: كم عدد النماذج المتوقعة؟**
ج: يومي: 1-3 شهرياً. ساعة: 5-10 أسبوعياً.
**س: هل يمكنني استخدامه للاختبار الخلفي؟**
ج: نعم! متوافق مع Signal Tester.
**س: هل يجب أن أتداول كل نموذج؟**
ج: لا. ركز على الإعدادات عالية الجودة.
**س: ما هو معدل الربح النموذجي؟**
ج: المبتدئون: 40-50%، المتقدمون: 65-75%.
---
## 🎯 لماذا تختار هذا المؤشر؟
✅ **شامل** - جميع النماذج العشرة في مؤشر واحد
✅ **موثوق** - عدم إعادة الرسم 100%
✅ **احترافي** - تصميم نظيف وقابل للتخصيص
✅ **كامل** - الدخول، الأهداف، ووقف الخسارة مشمولة
✅ **سهل الاستخدام** - سهل الاستخدام
✅ **مرن** - يعمل على جميع الأسواق والأطر الزمنية
---
## ⚠️ إخلاء المسؤولية
هذا المؤشر هو أداة للتحليل الفني ولا ينبغي اعتباره نصيحة مالية. التداول ينطوي على مخاطر كبيرة للخسارة. استخدم دائماً إدارة المخاطر المناسبة ولا تخاطر أبداً بأكثر مما يمكنك تحمل خسارته.
---
## 🏆 الكلمة الأخيرة
**مؤشر نماذج الهارمونيك الاحترافي 1.0** يجمع بين نظرية نماذج الهارمونيك الكلاسيكية والأتمتة الحديثة. ابدأ في تحديد مناطق الانعكاس عالية الاحتمالية اليوم!
**الإصدار**: 1.0 | **المطور**: | **آخر تحديث**: أكتوبر 2025
**تداول موفق! 📊✨**
Educational
Directional Momentum VisualizerDescription
This script provides a color-coded column visualization of a classic momentum oscillator that measures relative strength and weakness. Instead of a single line, it uses conditional coloring to make directional changes easier to identify at a glance.
The tool is designed for clarity and adaptability, offering both column and line displays, with optional overbought, oversold, and midpoint guides.
How It Works
The script evaluates the oscillator’s value relative to a midpoint and its previous reading.
Depending on whether it’s above or below the midpoint — and whether it’s rising or falling — each column changes color:
Strong upward momentum (above midpoint and rising) → bright green
Fading upward momentum (above midpoint but falling) → pale green
Strong downward momentum (below midpoint and falling) → bright red
Fading downward momentum (below midpoint but rising) → pale red
Unchanged from the previous value → gray
This structure makes momentum shifts instantly visible without relying on line crossings or alerts.
Key Features
Color-coded momentum columns for instant visual interpretation
Adjustable midpoint, overbought, and oversold levels
Optional line overlay for smoother reference
Dynamic background highlighting in extreme zones
Works on any symbol or timeframe
Inputs Overview
Length: Controls the sensitivity of the oscillator calculation.
Source: Selects the price source (Close, HL2, etc.).
Midpoint Level: Defines the central reference level separating bullish and bearish momentum.
Show Line: Toggles visibility of the traditional line overlay.
Overbought / Oversold Levels: Define upper and lower boundaries for potential exhaustion zones.
How to Use
Add the script to your chart from the Indicators tab.
Adjust the midpoint and level settings to fit your preferred configuration.
Observe how column colors shift to reflect strength or weakness in momentum.
Use these transitions as visual context, not as trade signals.
How it Helps
This visual approach offers a clearer perspective on momentum dynamics by replacing the traditional single-line display with color-coded columns. The conditional coloring instantly reveals whether momentum is strengthening or weakening around a chosen midpoint, making trend shifts and fading pressure easier to interpret at a glance. It helps reduce visual noise and allows for quicker, more intuitive analysis of market behavior.
This tool is intended purely as a visual aid to help identify changing momentum conditions at a glance. It is not a buy or sell signal generator and should be used in combination with other forms of analysis and sound risk management.
⚠️ Disclaimer:
This script is provided for educational and informational purposes only. It is not financial advice and should not be considered a recommendation to buy, sell, or hold any financial instrument. Trading involves significant risk of loss and is not suitable for every investor. Users should perform their own due diligence and consult with a licensed financial advisor before making any trading decisions. The author does not guarantee any profits or results from using this script, and assumes no liability for any losses incurred. Use this script at your own risk.
Mythical EMAs + Dynamic VWAP BandThis indicator titled "Mythical EMAs + Dynamic VWAP Band." It overlays several volatility-adjusted Exponential Moving Averages (EMAs) on the chart, along with a Volume Weighted Average Price (VWAP) line and a dynamic band around it.
Additionally, it uses background coloring (clouds) to visualize bullish or bearish trends, with intensity modulated by the price's position relative to the VWAP.
The EMAs are themed with mythical names (e.g., Hermes for the 9-period EMA), but this is just stylistic flavoring and doesn't affect functionality.
I'll break it down section by section, explaining what each part does, how it works, and its purpose in the context of technical analysis. This indicator is designed for traders to identify trends, momentum, and price fairness relative to volume-weighted averages, with volatility adjustments to make the EMAs more responsive in volatile markets.
### 1. **Volatility Calculation (ATR)**
```pine
atrLength = 14
volatility = ta.atr(atrLength)
```
- **What it does**: Calculates the Average True Range (ATR) over 14 periods (a common default). ATR measures market volatility by averaging the true range (the greatest of: high-low, |high-previous close|, |low-previous close|).
- **Purpose**: This volatility value is used later to dynamically adjust the EMAs, making them more sensitive in high-volatility conditions (e.g., during market swings) and smoother in low-volatility periods. It helps the indicator adapt to changing market environments rather than using static EMAs.
### 2. **Custom Mythical EMA Function**
```pine
mythical_ema(src, length, base_alpha, vol_factor) =>
alpha = (2 / (length + 1)) * base_alpha * (1 + vol_factor * (volatility / src))
ema = 0.0
ema := na(ema ) ? src : alpha * src + (1 - alpha) * ema
ema
```
- **What it does**: Defines a custom function to compute a modified EMA.
- It starts with the standard EMA smoothing factor formula: `2 / (length + 1)`.
- Multiplies it by a `base_alpha` (a user-defined multiplier to tweak responsiveness).
- Adjusts further for volatility: Adds a term `(1 + vol_factor * (volatility / src))`, where `vol_factor` scales the impact, and `volatility / src` normalizes ATR relative to the source price (making it scale-invariant).
- The EMA is then calculated recursively: If the previous EMA is NA (e.g., at the start), it uses the current source value; otherwise, it weights the current source by `alpha` and the prior EMA by `(1 - alpha)`.
- **Purpose**: This creates "adaptive" EMAs that react faster in volatile markets (higher alpha when volatility is high relative to price) without overreacting in calm periods. It's an enhancement over standard EMAs, which use fixed alphas and can lag in choppy conditions. The mythical theme is just naming—functionally, it's a volatility-weighted EMA.
### 3. **Calculating the EMAs**
```pine
ema9 = mythical_ema(close, 9, 1.2, 0.5) // Hermes - quick & nimble
ema20 = mythical_ema(close, 20, 1.0, 0.3) // Apollo - short-term foresight
ema50 = mythical_ema(close, 50, 0.9, 0.2) // Athena - wise strategist
ema100 = mythical_ema(close, 100, 0.8, 0.1) // Zeus - powerful oversight
ema200 = mythical_ema(close, 200, 0.7, 0.05) // Kronos - long-term patience
```
- **What it does**: Applies the custom EMA function to the close price with varying lengths (9, 20, 50, 100, 200 periods), base alphas (decreasing from 1.2 to 0.7 for longer periods to make shorter ones more responsive), and volatility factors (decreasing from 0.5 to 0.05 to reduce volatility influence on longer-term EMAs).
- **Purpose**: These form a multi-timeframe EMA ribbon:
- Shorter EMAs (e.g., 9 and 20) capture short-term momentum.
- Longer ones (e.g., 200) show long-term trends.
- Crossovers (e.g., short EMA crossing above long EMA) can signal buy/sell opportunities. The volatility adjustment makes them "mythical" by adding dynamism, potentially improving signal quality in real markets.
### 4. **VWAP Calculation**
```pine
vwap_val = ta.vwap(close) // VWAP based on close price
```
- **What it does**: Computes the Volume Weighted Average Price (VWAP) using the built-in `ta.vwap` function, anchored to the close price. VWAP is the average price weighted by volume over the session (resets daily by default in Pine Script).
- **Purpose**: VWAP acts as a benchmark for "fair value." Prices above VWAP suggest bullishness (buyers in control), below indicate bearishness (sellers dominant). It's commonly used by institutional traders to assess entry/exit points.
### 5. **Plotting EMAs and VWAP**
```pine
plot(ema9, color=color.fuchsia, title='EMA 9 (Hermes)')
plot(ema20, color=color.red, title='EMA 20 (Apollo)')
plot(ema50, color=color.orange, title='EMA 50 (Athena)')
plot(ema100, color=color.aqua, title='EMA 100 (Zeus)')
plot(ema200, color=color.blue, title='EMA 200 (Kronos)')
plot(vwap_val, color=color.yellow, linewidth=2, title='VWAP')
```
- **What it does**: Overlays the EMAs and VWAP on the chart with distinct colors and titles for easy identification in TradingView's legend.
- **Purpose**: Visualizes the EMA ribbon and VWAP line. Traders can watch for EMA alignments (e.g., all sloping up for uptrend) or price interactions with VWAP.
### 6. **Dynamic VWAP Band**
```pine
band_pct = 0.005
vwap_upper = vwap_val * (1 + band_pct)
vwap_lower = vwap_val * (1 - band_pct)
p1 = plot(vwap_upper, color=color.new(color.yellow, 0), title="VWAP Upper Band")
p2 = plot(vwap_lower, color=color.new(color.yellow, 0), title="VWAP Lower Band")
fill_color = close >= vwap_val ? color.new(color.green, 80) : color.new(color.red, 80)
fill(p1, p2, color=fill_color, title="Dynamic VWAP Band")
```
- **What it does**: Creates a band ±0.5% around the VWAP.
- Plots the upper/lower bands with full transparency (color opacity 0, so lines are invisible).
- Fills the area between them dynamically: Semi-transparent green (opacity 80) if close ≥ VWAP (bullish bias), red if below (bearish bias).
- **Purpose**: Highlights deviations from VWAP visually. The color change provides an at-a-glance sentiment indicator—green for "above fair value" (potential strength), red for "below" (potential weakness). The narrow band (0.5%) focuses on short-term fairness, and the fill makes it easier to spot than just the line.
### 7. **Trend Clouds with VWAP Interaction**
```pine
bullish = ema9 > ema20 and ema20 > ema50
bearish = ema9 < ema20 and ema20 < ema50
bullish_above_vwap = bullish and close > vwap_val
bullish_below_vwap = bullish and close <= vwap_val
bearish_below_vwap = bearish and close < vwap_val
bearish_above_vwap = bearish and close >= vwap_val
bgcolor(bullish_above_vwap ? color.new(color.green, 50) : na, title="Bullish Above VWAP")
bgcolor(bullish_below_vwap ? color.new(color.green, 80) : na, title="Bullish Below VWAP")
bgcolor(bearish_below_vwap ? color.new(color.red, 50) : na, title="Bearish Below VWAP")
bgcolor(bearish_above_vwap ? color.new(color.red, 80) : na, title="Bearish Above VWAP")
```
- **What it does**: Defines trend conditions based on EMA alignments:
- Bullish: Shorter EMAs stacked above longer ones (9 > 20 > 50, indicating upward momentum).
- Bearish: The opposite (downward momentum).
- Sub-conditions combine with VWAP: E.g., bullish_above_vwap is true only if bullish and price > VWAP.
- Applies background colors (bgcolor) to the entire chart pane:
- Strong bullish (above VWAP): Green with opacity 50 (less transparent, more intense).
- Weak bullish (below VWAP): Green with opacity 80 (more transparent, less intense).
- Strong bearish (below VWAP): Red with opacity 50.
- Weak bearish (above VWAP): Red with opacity 80.
- If no condition matches, no color (na).
- **Purpose**: Creates "clouds" for trend visualization, enhanced by VWAP context. This helps traders confirm trends—e.g., a strong bullish cloud (darker green) suggests a high-conviction uptrend when price is above VWAP. The varying opacity differentiates signal strength: Darker for aligned conditions (trend + VWAP agreement), lighter for misaligned (potential weakening or reversal).
### Overall Indicator Usage and Limitations
- **How to use it**: Add this to a TradingView chart (e.g., stocks, crypto, forex). Look for EMA crossovers, price bouncing off EMAs/VWAP, or cloud color changes as signals. Bullish clouds with price above VWAP might signal buys; bearish below for sells.
- **Strengths**: Combines momentum (EMAs), volume (VWAP), and volatility adaptation for a multi-layered view. Dynamic colors make it intuitive.
- **Limitations**:
- EMAs lag in ranging markets; volatility adjustment helps but doesn't eliminate whipsaws.
- VWAP resets daily (standard behavior), so it's best for intraday/session trading.
- No alerts or inputs for customization (e.g., changeable lengths)—it's hardcoded.
- Performance depends on the asset/timeframe; backtest before using.
- **License**: Mozilla Public License 2.0, so it's open-source and modifiable.
G Position Size Calculator (Crypto)G Position Size Calculator (Crypto)
This tool helps traders quickly visualize and calculate risk, position size, leverage, and R:R ratio directly on the chart for crypto trading.
It works similarly to TradingView’s Long/Short Position tool but automatically computes all metrics based on your clicks.
⚙️ How to Use
Add to Chart
Click Indicators → My Scripts → G Position Size Calculator (Crypto)
Set Entry, Stop-Loss, and Take-Profit
Open the script’s ⚙️ Settings.
Click the crosshair icon next to Entry, then click on the chart.
Do the same for Stop-Loss and Take-Profit.
Adjust Account & Risk Settings
Enter your Account Size (USD).
Set your Risk % per trade (default: 1%).
Visual Feedback
A green box shows your profit zone (Entry → TP).
A red box shows your loss zone (Entry → SL).
The label on the right displays:
Risk (% and $)
R:R ratio
Position size (units)
Leverage required
Fine-Tune Without Re-clicking
Use the nudge inputs (Entry, Stop, TP) to move levels up/down by 1 tick at a time.
Positive = up, negative = down.
Re-pick Levels Anytime
Re-open settings and click the crosshair again to redefine a level.
📈 Features
Automatic calculation of risk, position size, leverage, and R:R ratio.
Visual green/red box representing profit and loss areas.
Adjustable risk %, account balance, and label offset.
“Nudge” controls to emulate quick drag adjustments.
Clean layout designed for crypto price charts (works on any symbol).
Leverage & Liquidations (Margins) Plotter - [SANIXLAB]Leverage & Liquidations (Margins) Plotter —
This indicator visualises liquidation zones across multiple leverage tiers and helps traders manage margin exposure .
It dynamically plots the liquidation ranges for 5x → 100x positions, highlighting where leveraged traders could get wiped out.
Add manual long / short markers , choose leverage and margin size, and the script calculates your exact liquidation prices — buffered for realism.
A clean control panel shows entries, liquidation levels, and percentage distance to liquidation.
Features
Visual leverage zones (5x → 100x)
Manual Long / Short marker system
Margin-based liquidation math with buffer
Toggleable entry & liq lines
Compact top-right control panel
Floating mid-zone leverage labels
Fully customizable colors
Use Case
Quickly see:
Where 10x / 20x traders get squeezed
How far your own trade can move before margin burn
Where cascading liquidations might begin
Perfect for futures & leverage traders who want to keep one eye on price … and the other on survival.
— MR.L ☕
Brewed with caffeine, coded with care.
Swing Points LiquiditySwing Points Liquidity
Unlock advanced swing detection and liquidity zone marking for smarter trading decisions.
Overview:
Swing Points Liquidity automatically identifies key swing highs and swing lows using a five-candle “palm” structure, marking each significant price turn with precise labels: “BSL swing high” for potential bearish liquidity and “SSL swing low” for potential bullish liquidity. This transparent swing logic provides a robust way to highlight areas where price is most likely to react—making it an invaluable tool for traders applying Smart Money Concepts, supply and demand, or liquidity-based strategies.
How It Works:
The indicator scans every candle on your chart to detect and label swing highs and lows.
A swing high (“BSL swing high”) is identified when a central candle’s high is greater than the highs of the previous two and next two candles.
A swing low (“SSL swing low”) is identified when a central candle’s low is lower than the lows of the previous two and next two candles.
Labels are plotted for every detected swing point, providing clear visualization of important market liquidity levels on any symbol and timeframe.
How to Use:
Liquidity levels marked by the indicator are potential price reversal zones. To optimize your entries, combine these levels with confirmation signals such as reversal candlestick patterns, order blocks, or fair value gaps (FVGs).
When you see a “BSL swing high” or “SSL swing low” label, observe the price action at that area—if a reliable reversal pattern or order block/FVG forms, it can signal a high-probability trade opportunity.
These marked liquidity swings are also excellent for locating confluence zones, setting stop losses, and identifying where institutional activity or smart money may trigger significant moves. Always use market structure and price action in conjunction with these levels for greater consistency and confidence in your trading.
Features:
Customizable label display for swing highs (BSL) and swing lows (SSL)
Automatic detection using robust 5-candle palm logic
Works with all symbols and chart timeframes
Lightweight, clear visual style—easy for manual and algorithmic traders
Notes:
The indicator requires at least two candles both before and after each swing point, so labels will start appearing after enough historical data is loaded.
For deeper historical analysis, simply scroll left or zoom out on your chart to load more candles—the indicator will automatically process and display swing points on all available data.
Matt Market EfficiencyThis is a custom Pine Script v5 indicator for TradingView that creates a Market Efficiency Heatmap as a background overlay on your chart. It visualizes how "efficient" the market's price movement is over a specified period—essentially measuring how much of the total price volatility (wiggle room) resulted in net directional progress, weighted with volume activity.
High efficiency (stronger, less transparent color) indicates a clean trend with minimal wasted movement (e.g., a strong uptrend or downtrend).
Low efficiency (fainter color) suggests choppy, inefficient price action (e.g., ranging or noisy market).
Color coding: Teal for bullish (net price up), Purple for bearish (net price down).
The heatmap intensity scales from 1% opacity (very low efficiency) to 25% opacity (high efficiency), making it subtle yet informative without overwhelming the chart.
SMC by ProfesorSMC by Profesor
Discover market structure mastery with SMC by Profesor – your ultimate Smart Money Concepts toolkit for TradingView. Identify bullish/bearish BOS & CHoCH breaks, plot internal/swing order blocks, detect EQH/EQL levels, highlight FVGs, and zone premium/discount areas. Visualize swing points, PDH/PDL lines, and trend-colored candles. Receive instant alerts for breakouts, gaps, and more. Perfect for ICT traders seeking precision in any timeframe. Historical or real-time mode – elevate your edge today!
NQ B3X-S1.5X cash by BellevueFXNQ B3X-S1.5X Cash by BellevueFX
Precision Breakout Engine for Nasdaq Futures (NQ)
The NQ B3X-S1.5X Cash indicator by BellevueFX is an advanced price-action and volatility-driven breakout system designed for short-term scalpers, intraday traders, and algorithmic strategy builders focused on Nasdaq (NQ) or high-volatility assets.
It combines ATR-adaptive trailing logic, EMA structure alignment, and dynamic target generation to highlight institutional momentum shifts and sniper entry zones in real time.
⚙️ Core Features
📈 ATR-Adaptive Trailing Stop:
Automatically adjusts to volatility for accurate dynamic stop levels.
🧠 Smart Sensitivity Control:
Fine-tune responsiveness using the Key Sensitivity parameter — higher values smooth noise, lower values increase reactivity.
🔵 EMA Trend Alignment:
EMA-50 and EMA-200 act as directional filters and structure references.
🧭 Heikin Ashi Option:
Optionally use HA candles for smoother breakout confirmation.
🎯 Dynamic TP/SL Levels:
Automatically draws ENTRY, STOP LOSS, TP1, and TP2 levels for each signal — cleanly synchronized with the current price.
🔔 Built-in Alerts:
Ready-to-use Long and Short alert conditions for automated trade execution or signal notifications.
💡 How It Works
The system continuously measures volatility through ATR(500) and reacts dynamically to price structure:
BUY signal: When price crosses above the trailing baseline and confirms bullish momentum.
SELL signal: When price falls below the baseline and momentum confirms bearish reversal.
Targets: Automatically projected based on swing structure (2× and 4× distance from SL).
⚡ Best Use Cases
Works best on Nasdaq (NQ), but also effective on US30, SPX, and XAUUSD.
Designed for scalping, momentum trading, and breakout confirmations.
Compatible with BellevueFX AI tools and future Profitcosmos automation modules.
🧩 Recommended Settings
Default sensitivity: 9.0
ATR period: 500
Swing lookback: 5
Use on 1-min and 5-min charts for best performance.
🧠 Developer
BellevueFX — a division of Groupe Bellevue Inc.
Focused on precision trading systems, AI-driven analytics, and professional automation tools for active traders.
🔗 Visit www.profitcosmos.com
for strategy packs, tools, and automation updates.
SST Table ShekharSST Table Shekhar — v6.10.2
A compact, movable table that displays up to 20 symbols per group (Group A / Group B), shows current price (CMP), previous 20-day high (OLD GTT), current 20-day high (NEW GTT) and an UPDATE flag when NEW GTT < OLD GTT. Adds SMA20 on-chart, with an optional daily closing-basis alert for CMP crossing above SMA20. Designed for daily timeframe usage and efficient multi-symbol monitoring.
Key features
Two symbol groups (Group A / Group B), each up to 20 tickers — switch between groups without editing text fields.
Clean, transparent, movable table: STOCK | CMP | OLD GTT | NEW GTT | UPDATE.
Correct per-symbol OLD GTT (previous bar’s 20-day high) using a single request.security() call per symbol (optimized under TradingView limits).
SMA20 plotted on the chart (blue line).
Toggleable plots: HIGH20 / LOW20 / TARGET for the active chart symbol.
Alternate row shading and header background selector; font size selector.
Alerts:
Update GTT — when NEW 20D HIGH < OLD 20D HIGH (aggregated list).
CMP Cross Above SMA20 (closing basis) — when symbol closes above its SMA20 (uses previous close & previous SMA20 for closing-basis detection).
Alert messages list all symbols that triggered in the active group and include the group name.
Robust parser for input symbol lists — handles commas, semicolons, pipes, newlines and trims empty entries.
Inputs (exposed)
20-Day High/Low Length — period for HIGH/LOW (default 20).
Target % — percent used to compute target (optional plotted).
Group A / Group B — comma-separated lists of tickers (blank by default).
Show Which Group? — select Group A or Group B for display.
Table Corner — position (Top Left / Top Right / Bottom Left / Bottom Right).
Font Size — Small / Normal / Large.
Header Background — Transparent / Silver / Blue / Green / Yellow.
Show HIGH20/LOW20/TARGET Plots — toggle plotting of those lines for the chart symbol.
Alternate Row Shading & opacity.
Enable Update GTT Alert & Alert Only On Bar Close toggle.
Enable CMP Cross Above SMA20 Alert & Cross Only On Bar Close toggle.
Alerts / How to use
Put the script on a chart (recommended timeframe: 1D for reliable closing-basis cross signals).
Populate Group A and/or Group B with up to 20 tickers each (comma-separated). Leave blank to start fresh.
In the indicator’s Inputs, choose which group to view with Show Which Group?.
To create a TradingView alert:
Click the Alarm icon → Add alert.
Condition: choose either the alertcondition lines exposed by the script:
SST Table Shekhar v6.10.2 → Update GTT (any symbol)
SST Table Shekhar v6.10.2 → CMP Cross Above SMA20 (any symbol)
Or choose Any alert() function call if you want the script’s internal alert() messages (aggregated).
Set Options to Once per bar close if you want alerts only at bar close (recommended for daily timeframe), or Once per bar for intrabar.
Choose delivery channels: pop-up, app, email, webhook (webhook recommended for automation).
Alert messages include ticker lists (e.g. Update GTT = YES for: NSE:TCS, NSE:RELIANCE — (Group A)).
Practical examples
Use Group A for your core watchlist, Group B for a secondary watchlist; toggle groups to change the displayed list.
Keep chart on daily timeframe and enable Cross Alert Only On Bar Close for accurate closing-basis signals.
Use webhook alerts to push signals to Google Sheets, Discord/Telegram, or a trading automation system.
Performance & limits
Each symbol uses one request.security() call returning a tuple — optimized to stay below TradingView’s 40 unique-request limit.
Designed for up to 20 symbols per group (40 total), but running both groups simultaneously (40 requests) may approach limits depending on other indicators on your chart. Keep it to 20 per instance for best stability.
Works best on 1D / 4H / 1H timeframes. On very low intraday timeframes (1–5 min) you may see heavier resource usage — reduce number of symbols or plots if needed.
Known limitations
Alerts are aggregated (single alert lists all matching tickers). If you need individual per-symbol alerts you can create separate script instances or ask for per-symbol alert logic.
Only the CMP Cross Above SMA20 (closing basis) is included in this release. If you want downward crosses (CMP crosses below SMA20) or more complex rules (volume filter, RSI, etc.), I can add those.
Changelog
v6.10.2 — stable publish candidate: Group A/B, 20 symbols, robust parser, SMA20 cross alerts, optimized single-request per symbol, UI/appearance options, alert messages.
(previous dev notes kept internally)
Permissions & licensing
You may publish and redistribute this script on TradingView. If you republish code derived from this indicator, please keep author credit as Shekhar / SST Table Shekhar and note any modifications.
This script is provided as-is. Not financial advice. Use at your own risk.
Support / Contact
For feature requests, bug reports, or help configuring alerts/webhooks (Discord/GSheets/Telegram) — message me in the TradingView script comments or reply to this post.
ICT 1st Presented FVG After RTH OpenICT 1st Presented FVG After RTH Open
Overview
This indicator identifies and tracks the first Fair Value Gap (FVG) that forms after the Regular Trading Hours (RTH) open, based on Inner Circle Trader (ICT) concepts. It monitors price behavior and reaction to this initial FVG throughout the trading session.
Key Features
📊 Smart FVG Detection
• Automatically identifies the first valid FVG after RTH open (default: 9:30-10:00 AM ET)
• Filters noise using ATR-based minimum gap size validation
• Option to display all FVGs or just the first one
• Visual distinction between the first FVG and subsequent ones
⏰ Customizable Time Settings
• Adjustable RTH window (default: 9:30-10:00 AM)
• Multiple timezone support (New York, Chicago, London, Tokyo)
• Flexible tracking duration and sampling intervals
📈 Price Reaction Tracking
• Monitors price behavior relative to the first FVG over time
• Tracks whether price remains above, below, or inside the FVG zone
• Records price distance from FVG boundaries
• Displays real-time data in an easy-to-read table
• Volume tracking at each sample interval
🎨 Visual Elements
• Color-coded FVG boxes (green for bullish, red for bearish)
• Timestamp labels showing when each FVG formed
• Extendable boxes to track ongoing validity
• Optional background highlighting during RTH window
• Customizable table positions and display options
🔔 Alert System
• Visual markers on chart for easy backtesting
• Real-time programmatic alerts with detailed FVG information
• TradingView alert conditions for custom notifications
• Alerts include price range, gap size, and timestamp
Settings
Time Configuration:
• Timezone selection
• RTH start/end times
• Tracking duration (default: 120 minutes)
• Sample interval (default: 5 minutes)
FVG Validation:
• ATR length for gap size calculation
• Minimum gap size as ATR percentage
• Option to show all valid FVGs
Display Options:
• Custom colors for bullish/bearish FVGs
• Label visibility toggle
• Box extension options
• Maximum historical FVGs to display
• Info and reaction table positions
Use Cases
1. Entry Timing: Use the first FVG as a potential entry zone when price returns to fill the gap
2. Trend Confirmation: Monitor whether price respects or violates the first FVG
3. Session Analysis: Track how the first inefficiency of the session plays out over time
4. Backtesting: Visual markers allow easy historical analysis of FVG behavior
How It Works
The indicator waits for RTH to begin, then identifies the first three-candle pattern that creates a valid Fair Value Gap. Once detected, it:
1. Marks the FVG zone with a colored box
2. Begins tracking price position at regular intervals
3. Records data in a reaction table showing price behavior over time
4. Continues monitoring until the tracking duration expires or a new trading day begins
Notes
• Resets daily to track each session independently
• Works on any timeframe, though lower timeframes (1-5 min) are recommended for intraday FVG detection
• The "first presented" FVG concept emphasizes the importance of the initial inefficiency created after market open
• Historical FVGs are preserved up to the display limit for reference
This indicator is designed for traders familiar with ICT concepts and Fair Value Gap trading strategies. It combines automated detection with comprehensive tracking to help identify high-probability trading opportunities.
Colocar Ordens Fácil!This eases the process of creating limit orders on Trading View, when using the smarphone.
For that, the user inputs the given price range, the desired fibonacci entry level, and trade direction. The tools gives visual snap-to objects that can be used to lock long/short position tools, from which the option "create limit order" can be used to directly create the orders.
HTF Fibonacci on intraday ChartThis indicator plots Higher Timeframe (HTF) Fibonacci retracement levels directly on your intraday chart, allowing you to visualize how the current price action reacts to key retracement zones derived from the higher timeframe trend.
Concept
Fibonacci retracement levels are powerful tools used to identify potential support and resistance zones within a price trend.
However, these levels are often calculated on a higher timeframe (like Daily or Weekly), while most traders execute entries on lower timeframes (like 15m, 30m, or 1H).
This indicator bridges that gap — it projects the higher timeframe’s Fibonacci levels onto your current intraday chart, helping you see where institutional reactions or swing pivots might occur in real time.
How It Works
Select the Higher Timeframe (HTF)
You can choose which higher timeframe the Fibonacci structure is derived from — default is Daily.
Define the Lookback Period
The script looks back over the chosen number of bars on the higher timeframe to find the highest high and lowest low — the base for Fibonacci calculations.
Plots Key Fibonacci Levels Automatically:
0% (Low)
23.6%
38.2%
50.0%
61.8%
78.6%
100% (High)
Dynamic Labels
Each Fibonacci level is labelled on the latest bar, updating in real time as new data forms on the higher timeframe.
Best Used For
Intraday traders who want to align lower-timeframe entries with higher-timeframe structure.
Swing traders confirming price reactions around major Fibonacci retracement zones.
Contextual analysis for pullback entries, breakout confirmations, or retests of key levels.
Recommended Settings
Higher Timeframe: Daily (for intraday analysis)
Lookback: 50 bars (adjust based on volatility)
Combine with MACD, RSI, CPR, or Pivots for confluence.
License & Credits
Created and published for educational and analytical purposes.
Inspired by standard Fibonacci analysis practices.
Previous Day & Week High/Low LevelsPrevious Day & Week High/Low Levels is a precision tool designed to help traders easily identify the most relevant price levels that often act as strong support or resistance areas in the market. It automatically plots the previous day’s and week’s highs and lows, as well as the current day’s developing internal high and low. These levels are crucial reference points for intraday, swing, and even position traders who rely on price action and liquidity behavior.
Key Features
Previous Day High/Low:
The indicator automatically draws horizontal lines marking the highest and lowest prices from the previous trading day.
These levels are widely recognized as potential zones where the market may react again — either rejecting or breaking through them.
Previous Week High/Low:
The script also tracks and displays the high and low from the last completed trading week.
Weekly levels tend to represent stronger liquidity pools and broader institutional zones, which makes them especially important when aligning higher timeframe context with lower timeframe entries.
Internal Daily High/Low (Real-Time Tracking):
While the day progresses, the indicator dynamically updates the current day’s internal high and low.
This allows traders to visualize developing market structure, identify intraday ranges, and anticipate potential breakouts or liquidity sweeps.
Multi-Timeframe Consistency:
All levels — daily and weekly — remain visible across any chart timeframe, from 1 minute to 1 day or higher.
This ensures traders can maintain perspective and avoid losing track of key zones when switching views.
Customizable Visuals:
The colors, line thickness, and label visibility can be easily adjusted to match personal charting preferences.
This makes the indicator adaptable to any trading style or layout, whether minimalistic or detailed.
How to Use
Identify Key Reaction Zones:
Observe how price interacts with the previous day and week levels. Rejections, consolidations, or clean breakouts around these lines often signal strong liquidity areas or potential directional moves.
Combine with Market Structure or Liquidity Concepts:
The indicator works perfectly with supply and demand analysis, liquidity sweeps, order block strategies, or simply classic support/resistance techniques.
Scalping and Intraday Trading:
On lower timeframes (1m–15m), the daily levels help identify intraday turning points.
On higher timeframes (1h–4h or daily), the weekly levels provide broader context and directional bias.
Risk Management and Planning:
Using these levels as reference points allows for more precise stop placement, target setting, and overall trade management.
Why This Indicator Helps
Markets often react strongly around previous highs and lows because these zones contain trapped liquidity, pending orders, or institutional decision points.
By having these areas automatically mapped out, traders gain a clear and objective view of where price is likely to respond — without needing to manually draw lines every day or week.
Whether you’re a beginner still learning about price structure, or an advanced trader refining entries within liquidity zones, this tool simplifies the process and keeps your charts clean, consistent, and data-driven.
TASC 2025.11 The Points and Line Chart█ OVERVIEW
This script implements the Points and Line Chart described by Mohamed Ashraf Mahfouz and Mohamed Meregy in the November 2025 edition of the TASC Traders' Tips , "Efficient Display of Irregular Time Series”. This novel chart type interprets regular time series chart data to create an irregular time series chart.
█ CONCEPTS
When formatting data for display on a price chart, there are two main categorizations of chart types: regular time series (RTS) and irregular time series (ITS).
RTS charts, such as a typical candlestick chart, collect data over a specified amount of time and display it at one point. A one-minute candle, for example, represents the entirety of price movements within the minute that it represents.
ITS charts display data only after certain conditions are met. Since they do not plot at a consistent time period, they are called “irregular”.
Typically, ITS charts, such as Point and Figure (P&F) and Renko charts, focus on price change, plotting only when a certain threshold of change occurs.
The Points and Line (P&L) chart operates similarly to a P&F chart, using price change to determine when to plot points. However, instead of plotting the price in points, the P&L chart (by default) plots the closing price from RTS data. In other words, the P&L chart plots its points at the actual RTS close, as opposed to (price) intervals based on point size. This approach creates an ITS while still maintaining a reference to the RTS data, allowing us to gain a better understanding of time while consolidating the chart into an ITS format.
█ USAGE
Because the P&L chart forms bars based on price action instead of time, it displays displays significantly more history than a typical RTS chart. With this view, we are able to more easily spot support and resistance levels, which we could use when looking to place trades.
In the chart below, we can see over 13 years of data consolidated into one single view.
To view specific chart details, hover over each point of the chart to see a list of information.
In addition to providing a compact view of price movement over larger periods, this new chart type helps make classic chart patterns easier to interpret. When considering breakouts, the closing price provides a clearer representation of the actual breakout, as opposed to point size plots which are limited.
Because P&L is a new charting type, this script still requires a standard RTS chart for proper calculations. However, the main price chart is not intended for interpretation alongside the P&L chart; users can hide the main price series to keep the chart clean.
█ DISPLAYS
This indicator creates two displays: the "Price Display" and the "Data Display".
With the "Price display" setting, users can choose between showing a line or OHLC candles for the P&L drawing. The line display shows the close price of the P&L chart. In the candle display, the close price remains the same, while the open, high, and low values depend on the price action between points.
With the "Data display" setting, users can enable the display of a histogram that shows either the total volume or days/bars between the points in the P&L chart. For example, a reading of 12 days would indicate that the time since the last point was 12 days.
Note: The "Days" setting actually shows the number of chart bars elapsed between P&L points. The displayed value represents days only if the chart uses the "1D" timeframe.
The "Overlay P&L on chart" input controls whether the P&L line or candles appear on the main chart pane or in a separate pane.
Users can deactivate either display by selecting "None" from the corresponding input.
Technical Note: Due to drawing limitations, this indicator has the following display limits:
The line display can show data to 10,000 P&L points.
The candle display and tooltips show data for up to 500 points.
The histograms show data for up to 3,333 points.
█ INPUTS
Reversal Amount: The number of points/steps required to determine a reversal.
Scale size Method: The method used to filter price movements. By default, the P&L chart uses the same scaling method as the P&F chart. Optionally, this scaling method can be changed to use ATR or Percent.
P&L Method: The prices to plot and use for filtering:
“Close” plots the closing price and uses it to determine movements.
“High/Low” uses the high price on upside moves and low price on downside moves.
"Point Size" uses the closing price for filtration, but locks the price to plot at point size intervals.
Jensen Alpha RS🧠 Jensen Alpha RS (J-Alpha RS)
Jensen Alpha RS is a quantitative performance evaluation tool designed to compare multiple assets against a benchmark using Jensen’s Alpha — a classic risk-adjusted return metric from modern portfolio theory.
It helps identify which assets have outperformed their benchmark on a risk-adjusted basis and ranks them in real time, with optional gating and visual tools. 📊
✨ Key Features
• 🧩 Multi-Asset Comparison: Evaluate up to four assets simultaneously.
• 🔀 Adaptive Benchmarking: TOTALES mode uses CRYPTOCAP:TOTALES (total crypto market cap ex-stablecoins). Dynamic mode automatically selects the strongest benchmark among BTC, ETH, and TOTALES based on rolling momentum.
• 📐 Jensen’s Alpha Calculation: Uses rolling covariance, variance, and beta to estimate α, showing how much each asset outperformed its benchmark.
• 📈 Z-Score & Consistency Metrics: Z-Score highlights statistical deviations in alpha; Consistency % shows how often α has been positive over a chosen window.
• 🚦 Trend & Zero Gates: Optional filters that require assets to be above EMA (trend) and/or have α > 0 for confirmation.
• 🏆 Leaders Board Table: Displays α, Z, Rank, Consistency %, and Gate ✓/✗ for all assets in a clear visual layout.
• 🔔 Dynamic Alerts: Get notified whenever the top alpha leader changes on confirmed (non-repainting) data.
• 🎨 Visual Enhancements: Smooth α with an SMA or color bars by the current top-performing asset.
🧭 Typical Use Cases
• 🔄 Portfolio Rotation & Relative Strength: Identify which assets consistently outperform their benchmark to optimize capital allocation.
• 🧮 Alpha Persistence Analysis: Gauge whether a trend’s performance advantage is statistically sustainable.
• 🌐 Market Regime Insight: Observe how asset leadership rotates as benchmarks shift across market cycles.
⚙️ Inputs Overview
• 📝 Assets (1–4): Select up to four tickers for evaluation.
• 🧭 Benchmark Mode: Choose between static TOTALES or Dynamic auto-selection.
• 📏 Alpha Settings: Adjustable lookback, smoothing, and consistency windows.
• 🚦 Gates: Optional trend and alpha filters to refine results.
• 🖥️ Display: Enable/disable table and customize colors.
• 🔔 Alerts: Toggle notifications on leadership changes.
🔎 Formula Basis
Jensen’s Alpha (α) is estimated as:
α = E − β × E
where β = Cov(Ra, Rb) / Var(Rb), and Ra/Rb represent asset and benchmark returns, respectively.
A positive α indicates outperformance relative to the risk-adjusted benchmark expectation. ✅
⚠️ Disclaimer
This script is for educational and analytical purposes only.
It is NOT a signal. 🚫📉
It does not constitute financial advice, trading signals, or investment recommendations. 💬
The author is not responsible for any financial losses or trading decisions made based on this indicator. 🙏
Always perform your own analysis and use proper risk management. 🛡️
ICT Multi-Timeframe FVG & Order Flow SuiteICT Multi-Timeframe FVG & Order Flow Suite
A comprehensive Inner Circle Trader (ICT) analysis tool that combines multiple timeframes, Fair Value Gap detection, order flow tracking, and smart money concepts into one powerful indicator.
🎯 Key Features
Higher Timeframe FVG Detection
Simultaneously tracks FVGs across 4H, Daily, Weekly, and Monthly timeframes
Visual differentiation between active and mitigated HTF FVGs
BAG (Breaker And Gap) identification
Intelligent filtering system to align with HTF bias
Real-time status table showing current HTF FVG states
Current Timeframe Analysis
Automatic bullish/bearish FVG detection
2CR (2 Candle Reversal) tracking with visual markers
Mitigation monitoring with color-coded states
Customizable display limits and filtering options
Order Flow Legs
Dynamic order flow box highlighting price expansion
50% equilibrium level marking
Smart locking mechanism based on FVG mitigation
Real-time updates as price extends
ITH/ITL Pivot System
Intermediate Term High/Low detection
Run vs Sweep identification with directional labels
Mitigated and unmitigated level tracking
Visual distinction between respected and disrespected levels
Advanced Filtering
Hide opposing timeframe FVGs based on HTF bias
Filter current TF FVGs by type (bullish/bearish)
"Last Mitigated Only" mode to reduce chart clutter
Customizable maximum display limits per timeframe
📈 What Makes This Different?
Multi-Timeframe Integration: See how HTF FVGs align with your trading timeframe in real-time
Smart Bias Detection: Automatically determines market bias from highest to lowest enabled timeframe
Comprehensive Alerts: 12 distinct alert conditions covering FVG creation, mitigation, 2CR events, and pivot breaches
Professional Visualization: Clean, customizable colors and styles with minimal chart clutter
Status Dashboard: Quick-reference table showing the state of all tracked HTF FVGs
⚙️ Customization Options
Individual toggle controls for each HTF
Adjustable colors for bullish, bearish, active, and mitigated states
Boundary lines, origin markers, and mitigation lines
Configurable label sizes and positions
Line extension controls
Optional EMA overlay
🔔 Alert System
Set alerts for:
New FVG creation (bullish/bearish)
FVG mitigation events
2CR respect/disrespect
ITH/ITL runs and sweeps
💡 Best Practices
Start with Daily/Weekly HTF FVGs to identify overall bias
Use filtering to focus on trade direction aligned with HTF
Monitor 2CR events for confirmation of price acceptance/rejection
Combine with order flow legs to identify high-probability setups
Use the status table for quick multi-timeframe analysis
📚 Suitable For
ICT methodology traders
Smart Money Concept (SMC) practitioners
Multi-timeframe analysts
Swing and intraday traders
Anyone seeking institutional order flow insights
Note: This indicator is designed for educational purposes and works best when combined with proper risk management and additional confirmation methods. Understanding ICT concepts is recommended for optimal use.
Logit RSI [AdaptiveRSI]The traditional 0–100 RSI scale makes statistical overlays, such as Bollinger Bands or even moving averages, technically invalid. This script solves this issue by placing RSI on an unbounded, continuous scale, enabling these tools to work as intended.
The Logit function takes bounded data, such as RSI values ranging from 0 to 100, and maps them onto an unbounded scale ranging from negative infinity (−∞) to positive infinity (+∞).
An RSI reading of 50 becomes 0 on the Logit scale, indicating a balanced market. Readings above 50 map to positive Logit values (price above Wilder’s EMA / RSI above 50), while readings below 50 map to negative values (price below Wilder’s EMA / RSI below 50).
For the detailed formula, which calculates RSI as a scaled distance from Wilder’s EMA, check the RSI
: alternative derivation script.
The main issue with the 0–100 RSI scale is that different lookback periods produce very different distributions of RSI values. The histograms below illustrate how often RSIs of various lengths spend time within each 5-point range.
On RSI(2), the tallest bars appear at the edges (0–5 and 95–100), meaning short-term RSI spends most of its time at the extremes. For longer lookbacks, the bars cluster around the center and rarely reach 70 or 30.
This behavior makes it difficult to generalize the two most common RSI techniques:
Fixed 70/30 thresholds: These overbought and oversold levels only make sense for short- or mid-range lookbacks (around the low teens). For very short periods, RSI spends most of its time above or below these levels, while for long-term lookbacks, RSI rarely reaches them.
Bollinger Bands (±2 standard deviations): When applied directly to RSI, the bands often extend beyond the 0–100 limits (especially for short-term lookbacks) making them mathematically invalid. While the issue is less visible on longer settings, it remains conceptually incorrect.
To address this, we apply the Logit Transform :
Logit RSI = LN(RSI / (100 − RSI))
The transformed data fits a smooth bell-shaped curve, allowing statistical tools like Bollinger Bands to function properly for the first time.
Why Logit RSI Matters:
Makes RSI statistically consistent across all lookback periods.
Greatly improves the visual clarity of short-term RSIs
Allows proper use of volatility tools (like Bollinger Bands) on RSI.
Replaces arbitrary 70/30 levels with data-driven thresholds.
Simplifies RSI interpretation for both short- and long-term analysis.
INPUTS:
RSI Length — set the RSI lookback period used in calculations.
RSI Type — choose between Regular RSI or Logit RSI .
Plot Bollinger Bands — ON/OFF toggle to overlay statistical envelopes around RSI or Logit RSI.
SMA and Standard Deviation Length — defines the lookback period for both the SMA (Bollinger Bands midline) and Standard Deviation calculations.
Standard Deviation Multiplier — controls the width of the Bollinger Bands (e.g., 2.0 for ±2σ).
While simple, the Logit transformation represents an unexplored yet powerful mathematically grounded improvement to the classic RSI.
It offers traders a structured, intuitive, and statistically consistent way to use RSI across all timeframes.
I welcome your feedback, suggestions, and code improvements—especially regarding performance and efficiency. Your insights are greatly appreciated.
CMF, RSI, CCI, MACD, OBV, Fisher, Stoch RSI, ADX (+DI/-DI)
Stoch RSINine indicators in one, CMF, RSI, CCI, MACD, OBV, Fisher, Stoch RSI, ADX (+DI/-DI) You can use whichever of the nine indicators you want. I use CFM, CCI, MACD, Stoch RSI.
Simplified Percentile ClusteringSimplified Percentile Clustering (SPC) is a clustering system for trend regime analysis.
Instead of relying on heavy iterative algorithms such as k-means, SPC takes a deterministic approach: it uses percentiles and running averages to form cluster centers directly from the data, producing smooth, interpretable market state segmentation that updates live with every bar.
Most clustering algorithms are designed for offline datasets, they require recomputation, multiple iterations, and fixed sample sizes.
SPC borrows from both statistical normalization and distance-based clustering theory , but simplifies them. Percentiles ensure that cluster centers are resistant to outliers , while the running mean provides a stable mid-point reference.
Unlike iterative methods, SPC’s centers evolve smoothly with time, ideal for charts that must update in real time without sudden reclassification noise.
SPC provides a simple yet powerful clustering heuristic that:
Runs continuously in a charting environment,
Remains interpretable and reproducible,
And allows traders to see how close the current market state is to transitioning between regimes.
Clustering by Percentiles
Traditional clustering methods find centers through iteration. SPC defines them deterministically using three simple statistics within a moving window:
Lower percentile (p_low) → captures the lower basin of feature values.
Upper percentile (p_high) → captures the upper basin.
Mean (mid) → represents the central tendency.
From these, SPC computes stable “centers”:
// K = 2 → two regimes (e.g., bullish / bearish)
=
// K = 3 → adds a neutral zone
=
These centers move gradually with the market, forming live regime boundaries without ever needing convergence steps.
Two clusters capture directional bias; three clusters add a neutral ‘range’ state.
Multi-Feature Fusion
While SPC can cluster a single feature such as RSI, CCI, Fisher Transform, DMI, Z-Score, or the price-to-MA ratio (MAR), its real strength lies in feature fusion. Each feature adds a unique lens to the clustering system. By toggling features on or off, traders can test how each dimension contributes to the regime structure.
In “Clusters” mode, SPC measures how far the current bar is from each cluster center across all enabled features, averages these distances, and assigns the bar to the nearest combined center. This effectively creates a multi-dimensional regime map , where each feature contributes equally to defining the overall market state.
The fusion distance is computed as:
dist := (rsi_d * on_off(use_rsi) + cci_d * on_off(use_cci) + fis_d * on_off(use_fis) + dmi_d * on_off(use_dmi) + zsc_d * on_off(use_zsc) + mar_d * on_off(use_mar)) / (on_off(use_rsi) + on_off(use_cci) + on_off(use_fis) + on_off(use_dmi) + on_off(use_zsc) + on_off(use_mar))
Because each feature can be standardized (Z-Score), the distances remain comparable across different scales.
Fusion mode combines multiple standardized features into a single smooth regime signal.
Visualizing Proximity - The Transition Gradient
Most indicators show binary or discrete conditions (e.g., bullish/bearish). SPC goes further, it quantifies how close the current value is to flipping into the next cluster.
It measures the distances to the two nearest cluster centers and interpolates between them:
rel_pos = min_dist / (min_dist + second_min_dist)
real_clust = cluster_val + (second_val - cluster_val) * rel_pos
This real_clust output forms a continuous line that moves smoothly between clusters:
Near 0.0 → firmly within the current regime
Around 0.5 → balanced between clusters (transition zone)
Near 1.0 → about to flip into the next regime
Smooth interpolation reveals when the market is close to a regime change.
How to Tune the Parameters
SPC includes intuitive parameters to adapt sensitivity and stability:
K Clusters (2–3): Defines the number of regimes. K = 2 for trend/range distinction, K = 3 for trend/neutral transitions.
Lookback: Determines the number of past bars used for percentile and mean calculations. Higher = smoother, more stable clusters. Lower = faster reaction to new trends.
Lower / Upper Percentiles: Define what counts as “low” and “high” states. Adjust to widen or tighten cluster ranges.
Shorter lookbacks react quickly to shifts; longer lookbacks smooth the clusters.
Visual Interpretation
In “Clusters” mode, SPC plots:
A colored histogram for each cluster (red, orange, green depending on K)
Horizontal guide lines separating cluster levels
Smooth proximity transitions between states
Each bar’s color also changes based on its assigned cluster, allowing quick recognition of when the market transitions between regimes.
Cluster bands visualize regime structure and transitions at a glance.
Practical Applications
Identify market regimes (bullish, neutral, bearish) in real time
Detect early transition phases before a trend flip occurs
Fuse multiple indicators into a single consistent signal
Engineer interpretable features for machine-learning research
Build adaptive filters or hybrid signals based on cluster proximity
Final Notes
Simplified Percentile Clustering (SPC) provides a balance between mathematical rigor and visual intuition. It replaces complex iterative algorithms with a clear, deterministic logic that any trader can understand, and yet retains the multidimensional insight of a fusion-based clustering system.
Use SPC to study how different indicators align, how regimes evolve, and how transitions emerge in real time. It’s not about predicting; it’s about seeing the structure of the market unfold.
Disclaimer
This indicator is intended for educational and analytical use.
It does not generate buy or sell signals.
Historical regime transitions are not indicative of future performance.
Always validate insights with independent analysis before making trading decisions.
Too many secretsTOO MANY SECRETS - Extreme Condition Signal Detector
This indicator identifies extreme market conditions and provides clear TOP and BOTTOM signals when specific criteria are met. Designed for traders who want reliable entry points without the noise.
KEY FEATURES:
No Repaint - Once a signal prints, it's locked in and will not disappear or change
Smart Filtering - The Blackbox and other proprietary modules prevent signal spam, ensuring only high-quality setups trigger alerts
Customizable Alerts - Use as a multi-symbol screener across different timeframes
Visual Strike Lines - Optional vertical lines mark exact signal locations with adjustable transparency
Clean Interface - Minimal chart clutter with maximum information
CLASSIFIED METHODOLOGY:
The internal workings of this indicator, including the Blackbox module and other signal processing components, are intentionally classified. The specific calculations, timeframes, and confluence requirements remain undisclosed.
RECOMMENDED USAGE:
Best viewed on 5 minute charts
Configure alerts to monitor multiple symbols simultaneously
Adjustable Blackbox parameter allows fine-tuning for your trading style
IMPORTANT NOTES:
Bar Replay: Signals only appear on 5x or faster speeds during replay. In live trading, signals appear instantly in real-time.
This is highly experimental. Not financial advice - trade at your own risk.
WHAT YOU GET:
TOP signals (red triangles) for potential bearish reversals
BOTTOM signals (green triangles) for potential bullish reversals
Alert conditions for automated notifications
Splash screen with setup guidance (can be toggled off)
ALISH WEEK LABELS THE ALISH WEEK LABELS
Overview
This indicator programmatically delineates each trading week and encapsulates its realized price range in a live-updating, filled rectangle. A week is defined in America/Toronto time from Monday 00:00 to Friday 16:00. Weekly market open to market close, For every week, the script draws:
a vertical start line at the first bar of Monday 00:00,
a vertical end line at the first bar at/after Friday 16:00, and
a white, semi-transparent box whose top tracks the highest price and whose bottom tracks the lowest price observed between those two temporal boundaries.
The drawing is timeframe-agnostic (M1 → 1D): the box expands in real time while the week is open and freezes at the close boundary.
Time Reference and Session Boundaries
All scheduling decisions are computed with time functions called using the fixed timezone string "America/Toronto", ensuring correct behavior across DST transitions without relying on chart timezone. The start condition is met at the first bar where (dayofweek == Monday && hour == 0 && minute == 0); on higher timeframes where an exact 00:00 bar may not exist, a fallback checks for the first Monday bar using ta.change(dayofweek). The close condition is met on the first bar at or after Friday 16:00 (Toronto), which guarantees deterministic closure on intraday and higher timeframes.
State Model
The indicator maintains minimal persistent state using var globals:
week_open (bool): whether the current weekly session is active.
wk_hi / wk_lo (float): rolling extrema for the active week.
wk_box (box): the graphical rectangle spanning × .
wk_start_line and a transient wk_end_line (line): vertical delimiters at the week’s start and end.
Two dynamic arrays (boxes, vlines) store object handles to support bounded history and deterministic garbage collection.
Update Cycle (Per Bar)
On each bar the script executes the following pipeline:
Start Check: If no week is open and the start condition is satisfied, instantiate wk_box anchored at the current bar_index, prime wk_hi/wk_lo with the bar’s high/low, create the start line, and push both handles to their arrays.
Accrual (while week_open): Update wk_hi/wk_lo using math.max/min with current bar extremes. Propagate those values to the active wk_box via box.set_top/bottom and slide box.set_right to the current bar_index to keep the box flush with live price.
Close Check: If at/after Friday 16:00, finalize the week by freezing the right edge (box.set_right), drawing the end line, pushing its handle, and flipping week_open false.
Retention Pruning: Enforce a hard cap on historical elements by deleting the oldest objects when counts exceed configured limits.
Drawing Semantics
The range container is a filled white rectangle (bgcolor = color.new(color.white, 100 − opacity)), with a solid white border for clear contrast on dark or light themes. Start/end boundaries are full-height vertical white lines (y1=+1e10, y2=−1e10) to guarantee visibility across auto-scaled y-axes. This approach avoids reliance on price-dependent anchors for the lines and is robust to large volatility spikes.
Multi-Timeframe Behavior
Because session logic is driven by wall-clock time in the Toronto zone, the indicator remains consistent across chart resolutions. On coarse timeframes where an exact boundary bar might not exist, the script legally approximates by triggering on the first available bar within or immediately after the boundary (e.g., Friday 16:00 occurs between two 4-hour bars). The box therefore represents the true realized high/low of the bars present in that timeframe, which is the correct visual for that resolution.
Inputs and Defaults
Weeks to keep (show_weeks_back): integer, default 40. Controls retention of historical boxes/lines to avoid UI clutter and resource overhead.
Fill opacity (fill_opacity): integer 0–100, default 88. Controls how solid the white fill appears; border color is fixed pure white for crisp edges.
Time zone is intentionally fixed to "America/Toronto" to match the strategy definition and maintain consistent historical backtesting.
Performance and Limits
Objects are reused only within a week; upon closure, handles are stored and later purged when history limits are exceeded. The script sets generous but safe caps (max_boxes_count/max_lines_count) to accommodate 40 weeks while preserving Editor constraints. Per-bar work is O(1), and pruning loops are bounded by the configured history length, keeping runtime predictable on long histories.
Edge Cases and Guarantees
DST Transitions: Using a fixed IANA time zone ensures Friday 16:00 and Monday 00:00 boundaries shift correctly when DST changes in Toronto.
Weekend Gaps/Holidays: If the market lacks bars exactly at boundaries, the nearest subsequent bar triggers the start/close logic; range statistics still reflect observed prices.
Live vs Historical: During live sessions the box edge advances every bar; when replaying history or backtesting, the same rules apply deterministically.
Scope (Intentional Simplicity)
This tool is strictly a visual framing indicator. It does not compute labels, statistics, alerts, or extended S/R projections. Its single responsibility is to clearly present the week’s realized range in the Toronto session window so you can layer your own execution or analytics on top.






















