Island Reversal [LuxAlgo]The Island Reversal tool allows traders to identify reversal patterns directly on the chart. These patterns signal a potential change in trend, either from bullish to bearish or vice versa.
The tool enables traders to filter these patterns by trend, volume, and range, making it easy to display pure or less constrained island reversals.
🔶 USAGE
An island reversal pattern may indicate a change in trend. It occurs when prices change direction from an uptrend to a downtrend, or vice versa.
This pattern is a great tool for timing the market. Traders should be aware of when these patterns develop and watch how prices behave after the pattern forms.
Now, let's take a closer look at one of these island reversal patterns to highlight its different components.
The different parts are depicted in the image above.
1. A trend prior to the pattern
2. A gap starts the pattern.
3. A range of prices
4. A final gap, opposite to the first one, closes the pattern.
5. In this case, the pattern leads to a bearish trend, which is opposite to the trend in the first step.
🔹 Trend, Volume and Range Filters
Enabling the trend filter causes the tool to only detect top island reversals during a bullish trend and bottom island reversals during a bearish trend.
Traders can adjust the size of the detected trend in the settings panel. The larger the trend size, the more relevant the reversal patterns can be.
The volume filter only detects reversal patterns if there is more volume within the range of the pattern than in the preceding trend.
The idea is that more people tend to participate at the top and bottom of a trend as it changes direction.
The tool has two range filters that discriminate the range within the island reversal pattern:
Horizontality Filter (R2): Based on the R-squared statistic from linear regression, it detects whether the price is moving sideways within the range.
Volatility Filter: Based on long-term volatility, it detects the size of the range within the pattern.
The smaller the value in the Horizontality Filter, the more horizontal the prices will be within the range. A larger value will detect more reversal patterns.
The larger the value in the Volatility Filter, the larger the ranges will be. A smaller value will detect fewer reversal patterns.
🔶 SETTINGS
🔹 Trend Filter
Trend Filter: Enable or disable the trend filter.
Trend Length: Select the size of the detected trend.
🔹 Volume Filter
Volume Filter: Enable or disable the volume filter.
🔹 Range Filter
Horizontality Filter (R2): Enable or disable the Horizontality filter and select a threshold value.
Volatility Filter: Enable or disable the Volatility filter and select the multiplier value.
🔹 Style
Bullish: Select a color for bullish sessions.
Bearish: Select a color for bearish sessions.
Transparency: Select a transparency level from 100 to 0.
インジケーターとストラテジー
Smart Flow Tracker [The_lurker]
Smart Flow Tracker (SFT): Advanced Order Flow Tracking Indicator
Overview
Smart Flow Tracker (SFT) is an advanced indicator designed for real-time tracking and analysis of order flows. It focuses on detecting institutional patterns, massive orders, and potential reversals through analysis of lower timeframes (Lower Timeframe) or live ticks. It provides deep insights into market behavior using a multi-layered intelligent detection system and a clear visual interface, giving traders a competitive edge.
SFT focuses on trade volumes, directions, and frequencies to uncover unusual activity that may indicate institutional intervention, massive orders, or manipulation attempts (traps).
Indicator Operation Levels
SFT operates on three main levels:
1. Microscopic Monitoring: Tracks every trade at precise timeframes (down to one second), providing visibility not available in standard timeframes.
2. Advanced Statistical Analysis: Calculates averages, deviations, patterns, and anomalies using precise mathematical algorithms.
3. Behavioral Artificial Intelligence: Recognizes behavioral patterns such as hidden institutional accumulation, manipulation attempts and traps, and potential reversal points.
Key Features
SFT features a set of advanced functions to enhance the trader's experience:
1. Intelligent Order Classification System: Classifies orders into six categories based on size and pattern:
- Standard: Normal orders with typical size.
- Significant 💎: Orders larger than average by 1.5 times.
- Major 🔥: Orders larger than average by 2.5 times.
- Massive 🐋: Orders larger than average by 3 times.
- Institutional 🏛️: Consistent patterns indicating institutional activity.
- Reversal 🔄: Large orders indicating direction change.
- Trap ⚠️: Patterns that may be price traps.
2. Institutional Patterns Detection: Tracks sequences of similar-sized orders, detects organized institutional activity, and is customizable (number of trades, variance ratio).
3. Reversals Detection: Compares recent flows with previous ones, detects direction shifts from up to down or vice versa, and operates only on large orders (Major/Massive/Institutional).
4. Traps Detection: Identifies sequences of large orders in one direction, followed by an institutional order in the opposite direction, with early alerts for false moves.
5. Flow Delta Bar: Displays the difference between buy and sell volumes as a percentage for balance, with instant updates per trade.
6. Dynamic Statistics Panel: Displays overall buy and sell ratios with real-time updates and interactive colors.
How It Works and Understanding
SFT relies on logical sequential stages for data processing:
A. Data Collection: Uses the `request.security_lower_tf()` function to extract data from a lower timeframe (like 1S) even on a higher timeframe (like 5D). For each time unit, it calculates:
- Adjusted Volume: Either normal volume or "price-weighted volume" (hlc3 * volume) based on user choice.
- Trade Direction: Compared to previous close (rise → buy, fall → sell).
B. Building Temporary Memory: Maintains a dynamic list (sizeHistory) of the last 100 trade sizes, continuously calculating the moving average (meanSize).
C. Intelligent Classification: Compares each new trade to the average:
- > 1.5 × average → Significant.
- > 2.5 × average → Major.
- > 3.0 × average → Massive.
- Institutional Patterns Check: A certain number of trades (e.g., 5) with a specified variance ratio (±5%) → Institutional.
D. Advanced Detection:
- Reversal: Compares buy/sell totals in two consecutive periods.
- Trap: Sequence of large trades in one direction followed by an opposite institutional trade.
E. Display and Alerts: Results displayed in an automatically updated table, with option to enable alerts for notable events.
Settings (Fully Customizable)
SFT offers extensive options to adapt to the trader's needs:
A. Display Settings:
- Language: English / Arabic.
- Table Position: 9 options (e.g., Top Right, Middle Right, Bottom Left).
- Display Size: Tiny / Small / Normal / Large.
- Max Rows: 10–100.
- Enable Flow Delta Bar: Yes / No.
- Enable Statistics Panel: Yes / No (displays buy/sell % ratio).
B.- Technical Settings:
- Data Source: Lower Timeframe / Live Tick (simulation).
- Timeframe: Optional (e.g., 1S, 5S, 1).
- Calculation Type: Volume / Price Volume.
C. Intelligent Detection System:
- Enable Institutional Patterns Detection.
- Pattern Length: 3–20 trades.
- Allowed Variance Ratio: 1%–20%.
- Massive Orders Detection Factor: 2.0–10.0.
D. Classification Criteria:
- Significant Orders Factor: 1.2–3.0.
- Major Orders Factor: 2.0–5.0.
E. **Advanced Detection**:
- Enable Reversals Detection (with review period).
- Enable Traps Detection (with minimum sequence limit).
F. Alerts System:
- Enable for each type: Massive orders, institutional patterns, reversals, traps, severe imbalance (60%–90%).
G. Color System: Manual customization for each category:
- Standard Buy 🟢: Dark gray green.
- Standard Sell 🔴: Dark gray red.
- Significant Buy 🟢: Medium green.
- Significant Sell 🔴: Medium red.
- Major Orders 🟣: Purple.
- Massive Orders 🟠: Orange.
- Institutional 🟦: Sky blue.
- Reversal 🔵: Blue.
- Trap 🟣: Pink-purple.
Target Audiences
SFT benefits a wide range of traders and investors:
1. Scalpers: Instant detection of large orders, liquidity points identification, avoiding traps in critical moments.
2. Day Traders: Tracking smart money footprint, determining real session direction, early reversals detection.
3. Swing Traders: Confirming trend strength, detecting institutional accumulation/distribution, identifying optimal entry points.
4. Investors: Understanding true market sentiments, avoiding entry at false peaks, identifying real value zones.
⚠️ Disclaimer:
This indicator is for educational and analytical purposes only. It does not constitute financial, investment, or trading advice. Use it in conjunction with your own strategy and risk management. Neither TradingView nor the developer is liable for any financial decisions or losses.
Smart Flow Tracker (SFT): مؤشر متقدم لتتبع تدفقات الأوامر
نظرة عامة
Smart Flow Tracker (SFT) مؤشر متقدم مصمم لتتبع وتحليل تدفقات الأوامر في الوقت الفعلي. يركز على كشف الأنماط المؤسسية، الأوامر الضخمة، والانعكاسات المحتملة من خلال تحليل الأطر الزمنية الأقل (Lower Timeframe) أو التيك الحي. يوفر رؤية عميقة لسلوك السوق باستخدام نظام كشف ذكي متعدد الطبقات وواجهة مرئية واضحة، مما يمنح المتداولين ميزة تنافسية.
يركز SFT على حجم الصفقات، اتجاهها، وتكرارها لكشف النشاط غير العادي الذي قد يشير إلى تدخل مؤسسات، أوامر ضخمة، أو محاولات تلاعب (فخاخ).
مستويات عمل المؤشر
يعمل SFT على ثلاثة مستويات رئيسية:
1. المراقبة المجهرية: يتتبع كل صفقة على مستوى الأطر الزمنية الدقيقة (حتى الثانية الواحدة)، مما يوفر رؤية غير متوفرة في الأطر الزمنية العادية.
2. التحليل الإحصائي المتقدم: يحسب المتوسطات، الانحرافات، الأنماط، والشذوذات باستخدام خوارزميات رياضية دقيقة.
3. الذكاء الاصطناعي السلوكي: يتعرف على أنماط سلوكية مثل التراكم المؤسسي المخفي، محاولات التلاعب والفخاخ، ونقاط الانعكاس المحتملة.
الميزات الرئيسية
يتميز SFT بمجموعة من الوظائف المتقدمة لتحسين تجربة المتداول:
1. نظام تصنيف الأوامر الذكي: يصنف الأوامر إلى ست فئات بناءً على الحجم والنمط:
- Standard (قياسي)**: أوامر عادية بحجم طبيعي.
- Significant 💎 (مهم)**: أوامر أكبر من المتوسط بـ1.5 ضعف.
- Major 🔥 (كبير)**: أوامر أكبر من المتوسط بـ2.5 ضعف.
- Massive 🐋 (ضخم)**: أوامر أكبر من المتوسط بـ3 أضعاف.
- Institutional 🏛️ (مؤسسي)**: أنماط متسقة تشير إلى نشاط مؤسسي.
- Reversal 🔄 (انعكاس)**: أوامر كبيرة تشير إلى تغيير اتجاه.
- Trap ⚠️ (فخ)**: أنماط قد تكون فخاخًا سعرية.
2. كشف الأنماط المؤسسية: يتتبع تسلسل الأوامر المتشابهة في الحجم، يكشف النشاط المؤسسي المنظم، وقابل للتخصيص (عدد الصفقات، نسبة التباين).
3. كشف الانعكاسات: يقارن التدفقات الأخيرة بالسابقة، يكشف تحول الاتجاه من صعود إلى هبوط أو العكس، ويعمل فقط على الأوامر الكبيرة (Major/Massive/Institutional).
4. كشف الفخاخ: يحدد تسلسل أوامر كبيرة في اتجاه واحد، يليها أمر مؤسسي في الاتجاه المعاكس، مع تنبيه مبكر للحركات الكاذبة.
5. شريط دلتا التدفق: يعرض الفرق بين حجم الشراء والبيع كنسبة مئوية للتوازن، مع تحديث فوري لكل صفقة.
6. لوحة إحصائيات ديناميكية: تعرض نسبة الشراء والبيع الإجمالية مع تحديث لحظي وألوان تفاعلية.
طريقة العمل والفهم
يعتمد SFT على مراحل منطقية متسلسلة لمعالجة البيانات:
أ. جمع البيانات: يستخدم دالة `request.security_lower_tf()` لاستخراج بيانات من إطار زمني أدنى (مثل 1S) حتى على إطار زمني أعلى (مثل 5D). لكل وحدة زمنية، يحسب:
- الحجم المعدّل: إما الحجم العادي (volume) أو "الحجم المرجّح بالسعر" (hlc3 * volume) حسب الاختيار.
- اتجاه الصفقة: مقارنة الإغلاق الحالي بالسابق (ارتفاع → شراء، انخفاض → بيع).
ب. بناء الذاكرة المؤقتة: يحتفظ بقائمة ديناميكية (sizeHistory) لآخر 100 حجم صفقة، ويحسب المتوسط المتحرك (meanSize) باستمرار.
ج. التصنيف الذكي: يقارن كل صفقة جديدة بالمتوسط:
- > 1.5 × المتوسط → Significant.
- > 2.5 × المتوسط → Major.
- > 3.0 × المتوسط → Massive.
- فحص الأنماط المؤسسية: عدد معين من الصفقات (مثل 5) بنسبة تباين محددة (±5%) → Institutional.
د. الكشف المتقدم:
- الانعكاس: مقارنة مجموع الشراء/البيع في فترتين متتاليتين.
- الفخ: تسلسل صفقات كبيرة في اتجاه واحد يتبعها صفقة مؤسسية معاكسة.
هـ. العرض والتنبيه: عرض النتائج في جدول محدّث تلقائيًا، مع إمكانية تفعيل تنبيهات للأحداث المميزة.
لإعدادات (قابلة للتخصيص بالكامل)
يوفر SFT خيارات واسعة للتكييف مع احتياجات المتداول:
أ. إعدادات العرض:
- اللغة: English / العربية.
- موقع الجدول: 9 خيارات (مثل Top Right, Middle Right, Bottom Left).
- حجم العرض: Tiny / Small / Normal / Large.
- الحد الأقصى للصفوف: 10–100.
- تفعيل شريط دلتا التدفق: نعم / لا.
- تفعيل لوحة الإحصائيات: نعم / لا (تعرض نسبة الشراء/البيع %).
ب. الإعدادات التقنية:
- مصدر البيانات: Lower Timeframe / Live Tick (محاكاة).
- الإطار الزمني: اختياري (مثل 1S, 5S, 1).
- نوع الحساب: Volume / Price Volume.
ج. نظام الكشف الذكي:
- تفعيل كشف الأنماط المؤسسية.
- طول النمط: 3–20 صفقة.
- نسبة التباين: 1%–20%.
- عامل كشف الأوامر الضخمة: 2.0–10.0.
د. معايير التصنيف:
- عامل الأوامر المهمة: 1.2–3.0.
- عامل الأوامر الكبرى: 2.0–5.0.
هـ. الكشف المتقدم:
- تفعيل كشف الانعكاسات (مع فترة مراجعة).
- تفعيل كشف الفخاخ (مع حد أدنى للتسلسل).
و. نظام التنبيهات:
- تفعيل لكل نوع: أوامر ضخمة، أنماط مؤسسية، انعكاسات، فخاخ، عدم توازن شديد (60%–90%).
ز. نظام الألوان**: تخصيص يدوي لكل فئة:
- شراء قياسي 🟢: أخضر رمادي داكن.
- بيع قياسي 🔴: أحمر رمادي داكن.
- شراء مهم 🟢: أخضر متوسط.
- بيع مهم 🔴: أحمر متوسط.
- أوامر كبرى 🟣: بنفسجي.
- أوامر ضخمة 🟠: برتقالي.
- مؤسسي 🟦: أزرق سماوي.
- انعكاس 🔵: أزرق.
- فخ 🟣: وردي-أرجواني.
الفئات المستهدفة
يستفيد من SFT مجموعة واسعة من المتداولين والمستثمرين:
1. السكالبرز (Scalpers): كشف لحظي للأوامر الكبيرة، تحديد نقاط السيولة، تجنب الفخاخ في اللحظات الحرجة.
2. المتداولون اليوميون (Day Traders): تتبع بصمة الأموال الذكية، تحديد اتجاه الجلسة الحقيقي، كشف الانعكاسات المبكرة.
3. المتداولون المتأرجحون (Swing Traders): تأكيد قوة الاتجاه، كشف التراكم/التوزيع المؤسسي، تحديد نقاط الدخول المثلى.
4. المستثمرون: فهم معنويات السوق الحقيقية، تجنب الدخول في قمم كاذبة، تحديد مناطق القيمة الحقيقية.
⚠️ إخلاء مسؤولية:
هذا المؤشر لأغراض تعليمية وتحليلية فقط. لا يُمثل نصيحة مالية أو استثمارية أو تداولية. استخدمه بالتزامن مع استراتيجيتك الخاصة وإدارة المخاطر. لا يتحمل TradingView ولا المطور مسؤولية أي قرارات مالية أو خسائر.
Ultimate Sclaping IndicatorOverview
The Confluence Signal Indicator is a precision-built scalping tool designed to identify high-probability reversal points in the market.
It combines three core technical elements:
Trend
Mean reversion
Momentum
into a single, efficient system.
By filtering out weak RSI signals and focusing only on setups that align with trend direction and recent momentum shifts, this indicator delivers cleaner and more accurate short-term trade signals.
Core Components
200-Period Moving Average (MA200, 5-Minute Timeframe)
The MA200 is always calculated from the 5-minute chart, regardless of your current timeframe. It defines the macro trend direction and ensures that all trades align with the prevailing momentum.
Session VWAP (Volume-Weighted Average Price)
The VWAP tracks the real-time average price weighted by volume for the current trading session. It acts as a dynamic mean-reversion level and helps identify key areas of institutional activity and short-term balance.
RSI (Relative Strength Index)
The indicator uses a standard 14-period RSI to detect overbought and oversold market conditions.
A “recency filter” is added to ensure signals only appear when RSI has recently transitioned from strength to weakness or vice versa, reducing false signals in trending markets.
Signal Logic
Bullish Signal (Green Arrow)
A bullish reversal signal is plotted below a candle when:
Price is above both the 5-minute MA200 and the Session VWAP.
RSI is oversold (below 30).
The last time RSI was above 50 occurred within the last 10 candles before going oversold.
This ensures that the dip is a fresh pullback within an uptrend, not a prolonged oversold condition.
Bearish Signal (Red Arrow)
A bearish reversal signal is plotted above a candle when:
Price is below both the 5-minute MA200 and the Session VWAP.
RSI is overbought (above 70).
The last time RSI was below 50 occurred within the last 10 candles before going overbought.
This ensures that the overbought reading follows a recent move from weakness, identifying potential short entries in a downtrend.
Recommended Usage
This is a scalping-focused indicator, intended for use on timeframes of 5 minutes or lower. Therefore I would highly recommend to use it on Equity futures trading, such as NQ!, ES!, GC! and so on.
It performs best when combined with additional tools such as support and resistance zones, order blocks, or liquidity levels for context.
Avoid counter-trend signals unless confirmed by price structure or volume behavior.
Geometric Price-Time Triangle Calculator═══════════════════════════════════════════════════
GEOMETRIC PRICE-TIME TRIANGLE CALCULATOR
═══════════════════════════════════════════════════
Calculates Point C of a geometric triangle using different rotation angles from any selected price swing. Based on Bradley F. Cowan's Price-Time Vector (PTV) methods from "Four-Dimensional Stock Market Structures and Cycles."
📐 WHAT IT DOES
────────────────────────────────────────────────────
Select two points (A and B) on any swing, choose an angle, and the indicator calculates where Point C would be mathematically. It's just vector rotation applied to price charts.
This shows you where Point C lands in both price AND time based on pure geometry - not a prediction, just a calculation.
🎯 FEATURES
────────────────────────────────────────────────────
✓ 10 Different Angles
• Gann ratios: 18.435° (1x3), 26.565° (1x2), 45° (1x1), 63.435° (2x1), 71.565° (3x1)
• Other angles: 30°, 60°, 90°, 120°, 150°
✓ Visual Triangle
• Adjustable colors and opacity for points A, B, C
• Line styles: Solid, Dashed, Dotted
• Extend lines: None, Left, Right, Both
✓ Crosshair at Point C
• Shows where Point C is located
• Vertical line = bar position
• Horizontal line = price level
✓ Data Table
• Shows all calculations
• Price-to-Bar ratio
• Point C location (price and bars from A/B)
• Toggle on/off
🔧 HOW TO USE
────────────────────────────────────────────────────
1. Pick your swing start date (Point A)
2. Pick your swing end date (Point B) - make sure these dates capture the actual high/low of your swing
3. Choose an angle from the dropdown
4. Look at Point C - that's where the geometry puts it
Different angles = different Point C locations. Whether price actually goes there is up to the market.
📊 THE ANGLES
────────────────────────────────────────────────────
- 18.435° (1x3) - Shallow rotation
- 26.565° (1x2) - Moderate rotation
- 45° (1x1) - Gann's balanced ratio
- 60° - Equilateral triangle (default)
- 63.435° (2x1) - Steeper rotation
- 71.565° (3x1) - Very steep rotation
- 90° - Right angle
- 120°-150° - Obtuse angles
💡 PRACTICAL USE
────────────────────────────────────────────────────
→ See where geometric patterns would complete
→ Test if your market respects certain angles
→ Find where multiple angles converge
→ Compare projected Point C to actual price action
→ Use 90° to see symmetrical price/time relationships
→ Backtest historical swings to see what worked
⚙️ HOW IT WORKS
────────────────────────────────────────────────────
1. Takes your AB swing
2. Calculates the BA vector (reverse direction)
3. Normalizes price and time using Price-to-Bar ratio
4. Rotates the vector by your selected angle
5. Converts back to chart coordinates
Basic trigonometry. That's all it is.
📚 BACKGROUND
────────────────────────────────────────────────────
Based on Bradley F. Cowan's Price-Time Vector (PTV) concept from "Four-Dimensional Stock Market Structures and Cycles" and W.D. Gann's geometric angle analysis. Cowan observed that markets sometimes complete geometric patterns. This tool calculates where those patterns would complete mathematically. Whether price actually respects these geometric relationships is something you need to test yourself.
⚠️ IMPORTANT
────────────────────────────────────────────────────
- This is geometric calculation, not prediction
- Point C shows where the math puts it, not where price will go
- Some angles might work for your market, some won't
- Test it yourself on historical data
- Price-to-Bar Ratio stays constant regardless of angle
- Don't trade based on this alone
- Works on all timeframes and assets
🎨 CUSTOMIZATION
────────────────────────────────────────────────────
- Show/hide triangle
- Individual colors for A, B, C points
- Adjust opacity (0-100)
- Line styles for each triangle side
- Extend lines left/right/both/none
- Show/hide data table
- Crosshair color and width
- Customizable table colors
═══════════════════════════════════════════════════
koval V2A simple indicator that generates random values to simulate market movements or test trading strategies. Useful for experimenting with algorithm behavior or visualizing random data patterns on charts.
Liquidity Spectrum Visualizer BigBeluga - optimized by nguyenthlThis optimized version of the original Liquidity Spectrum Visualizer is designed for traders who want the same analytical output as the original indicator, but with significantly faster execution and smoother performance.
The script preserves the original visualization and logic — it still maps volume activity across price bins to highlight liquidity clusters — but the internal calculations have been carefully restructured to reduce computational load and improve responsiveness on live charts.
What’s new and why it matters
Single-pass binning algorithm: Each bar is processed once, reducing loop complexity from O(N×M) to O(N). This allows the indicator to run fluidly on higher timeframes and large datasets.
Precomputed min/max levels: Eliminates redundant array scans, improving efficiency for real-time analysis.
Minimal label usage: Only key high/low markers are drawn, removing visual clutter and improving chart readability.
Optimized resource handling: Boxes and lines are refreshed as a group, minimizing redraw lag.
Why this is useful
This version is particularly helpful for traders using complex layouts, slower machines, or multi-chart setups. It offers the same analytical insight into liquidity zones while keeping chart performance stable and responsive.
How to use it
Apply the indicator as you would the original version. It visualizes liquidity distributions, helping identify areas of concentrated activity or potential support/resistance zones.
The script includes optional features such as gradient rendering and POC (Point of Control) highlighting, which can be toggled on or off for clarity.
Notes
The purpose of this version is purely performance optimization — analytical integrity is fully preserved.
The chart example provided focuses solely on this indicator, with no additional overlays, so users can clearly see its visual output.
LevelsLevels is a powerful technical analysis tool that automatically identifies and displays key support and resistance levels on the chart. The indicator analyzes historical price data, detecting significant price levels where multiple reversals or price stops have occurred.
How the Indicator Works?
1. Identification of Reversal Points:
- The indicator tracks price extremes using an algorithm to identify local highs and lows
- A reversal point is recorded when:
- Uptrend: price reaches a new low for the last 10 bars
- Downtrend: price reaches a new high for the last 10 bars
2. Level Grouping:
- All found reversal points are analyzed and grouped into key levels
- Levels are combined if they fall within the specified percentage tolerance
3. Filtering Significant Levels:
- Only levels that have been tested the minimum number of times (set in settings) are preserved
- This ensures only statistically significant levels are displayed
How to Use the Indicator?
Trading Scenarios:
1. Bounce from Level:
- When price approaches an identified level, a bounce can be expected
- Opening positions on the bounce with protective stop-loss beyond the level
2. Level Breakout:
- Breaking through a key level may signal trend continuation
- Support level becomes resistance and vice versa
3. Consolidation near Level:
- Prolonged price presence near a level indicates its significance
- Strong movement can be expected after exiting consolidation
Advantages:
- Automatic level identification eliminates subjectivity
- Sensitivity customization for different timeframes and instruments
- Visual simplicity - only significant levels
Indicator Settings
Main Parameters:
- Show Key Levels - enable/disable level display
- Level Tolerance (%) - percentage tolerance for level grouping
- Smaller values: more levels, more precise
- Larger values: fewer levels, more significant
- Minimum Touches - minimum number of touches to form a level
Visual Settings:
- Level Color - level display color
- Level Style - line style (solid, dashed, dotted)
Limitations
- Levels are built only on available historical data
- Does not account for trading volumes
- Parameter adjustment may be required during high volatility periods
The indicator is particularly effective when combined with other analysis tools for signal confirmation.
0DTE Options - Iron Condor & ButterflyTo help options traders:
Plan and structure Iron Condor or Butterfly spreads in “Setup Mode.”
Track live trades, including P&L, breach risk, and strike distances, in “Live Mode.”
Visualize the trade on the price chart with profit zones, breakeven lines, strike markers, and alerts.
Evaluate market conditions using IV Rank, ATR-based range modeling, and modeled Delta approximation.
Essentially, it turns your TradingView chart into an options risk graph + planning terminal.
⚙️ Core Modes of Operation
🧱 1. Setup Mode
Used for planning new trades. It automatically suggests strikes based on:
ATR (volatility proxy)
IV Rank
Target Delta
Chosen risk tier (High / Mid / Low / Delta)
You can:
Preview recommended short and long strikes.
See estimated credit, width, and risk/reward ratios in a setup table.
Auto-feed these calculated strikes into the Live Mode to track them later.
Example Use:
Before market open, choose Setup Mode → Mid Risk Tier → see what strike widths and credits make sense for the day.
📈 2. Live Mode
Used to track real trades you’ve already opened.
You can:
Paste your real trade data (strikes, credits, etc.) into the 📋 paste field.
Or auto-feed from Setup Mode (if “Auto-Feed” is enabled).
The indicator then plots:
Short/long strikes
Breakevens
Profit/loss zone
Real-time breach detection and delta drift
Alerts when price nears your strikes or exits your safe zone.
Example Use:
After opening an Iron Condor on SPX, paste in 626,628,620,618,1.20,1, and the chart visually shows your safe range and warning zones.
🧮 Built-In Calculations
1. IV Rank (Volatility Environment)
Uses a 20-day log return volatility model to calculate IV Rank (percentile of volatility over the last 252 bars).
You can use this automatically or manually override it if you have data from your broker.
→ High IV Rank (>50) = better for selling Iron Condors (more premium).
2. ATR (Average True Range)
Measures short-term volatility to estimate expected daily price movement.
Used in Setup Mode to model distance between strikes.
3. Strike Calculations (Setup Mode)
Based on risk tier:
High Risk → wide wings, high credit, high potential drawdown
Mid Risk → balanced setup
Low Risk → narrow wings, safer but less credit
Delta Mode → based purely on target delta (e.g., 0.20)
Uses ATR × multiplier to determine how far short strikes should be from current price.
4. Credit Estimation
Based on strike width × IV Rank multiplier:
IV > 50 → 30% of width
IV 30–50 → 25%
IV < 30 → 20%
5. Profit & Loss Modeling
The indicator computes:
Max Profit:
Iron Condor → credit × 100 × contracts
Butterfly → (wing width − debit) × 100 × contracts
Max Loss:
Iron Condor → width − credit
Butterfly → debit × 100 × contracts
Breakevens:
Iron Condor → short strikes ± credit
Butterfly → body ± debit
Current P&L: Approximated by where the underlying is relative to the short/long strikes.
6. Delta Modeling
Estimates each short strike’s modeled delta based on how far it is from current price.
Displays total delta balance to show directional bias.
If Delta drifts too high → market imbalance → consider rolling or adjusting.
7. Breach Detection System
Automatically classifies your trade as:
🟢 In Range: Price between short strikes (safe zone).
🟠 Near Breach: Price close to short strike (risk zone).
🔴 Breached: Price outside long strike (stop or adjust zone).
This dynamically changes color in your profit box and info label.
🎨 Visual Components
Element Meaning Color
Red Line Put side strikes 🔻 Red
Green Line Call side strikes 🔺 Green
Yellow Dotted Lines Breakevens 🟡 Yellow
Green Box Profit zone 🟩 Light green
Orange Box Adjustment zone (near breach) 🟧 Orange
Red Box Breach zone 🟥 Red
White Line Current price ⚪ White
Optional labels display strike details and distances (e.g., “📉 Short Put: 620 – 5 pts away”).
📊 Setup Table (Setup Mode Only)
Displays a grid comparing all risk tiers:
Tier Short Call Short Put Width Est. Credit R:R
High 632 614 4.0 $1.20 0.43
Mid 630 616 3.0 $0.90 0.43
Low 628 618 2.0 $0.60 0.43
Highlighted row = selected risk tier.
This lets you compare how wide/narrow each setup is before committing to a trade.
🧾 Info Box (Live Mode)
Displays real-time stats such as:
🔶 IRON CONDOR | 1 Contract
📊 Calls: 626 / 628 | Puts: 620 / 618
💵 Credit: $1.20 | 💰 Profit: $120 | 🔴 Loss: $180
⬆️ BE: 627.2 | ⬇️ BE: 618.8
📍 Current: $623 | 💵 P&L: +$35.00 (+29.1%)
📏 To Short Call: 3 | To Short Put: 3
📊 Delta: 0.05 | IV Rank: 56% (FAVORABLE)
🔴 BREACH STATUS: In Range
🚨 Alerts
The indicator generates TradingView alerts for:
⚠️ Approaching Call Zone → nearing short call
⚠️ Approaching Put Zone → nearing short put
🛑 Stop Loss Triggered → current P&L exceeds loss threshold
🟠 Near Breach → price entering adjustment zone
🔴 Breached → price outside protection (long strikes)
These alerts can be used with TradingView notifications or webhooks.
🧠 How to Use It Step-by-Step
A. Planning (Setup Mode)
Set mode to “Setup.”
Adjust:
Risk Tier (High / Mid / Low / Delta)
Target Delta (0.15–0.30 recommended)
Strike Interval (e.g., 1.0 or 5.0)
Check Setup Table → see suggested strikes & credits.
Optionally toggle Auto-Feed → Live to send to live mode later.
B. Executing (Broker)
Confirm and enter your trade in your brokerage (use the strikes shown).
Record your strikes, net credit/debit, and number of contracts.
C. Tracking (Live Mode)
Switch to “Live” mode.
Paste your strikes in the 📋 Paste Data field:
Iron Condor Example: 626,628,620,618,1.20,1
Butterfly Example: 600,620,640,2.50,2
The chart updates:
Lines = your strikes
Boxes = profit/risk zones
Labels = strike info, distance to price
Info box = P&L, delta, IV rank, breach status
Set alerts for automatic notifications.
D. Managing the Trade
When the chart turns orange or red, you’re approaching or breaching a strike.
Use this signal to roll, hedge, or close your trade.
Monitor Gamma Risk: warning appears when price nears short strikes (explosive delta risk).
📌 Summary
Feature Description
Mode Switching Plan (Setup) or Track (Live)
IV Rank & ATR Modeling Estimates volatility environment
Auto Strike Planning Suggests strikes based on risk/delta
Visual Range Map Profit, breakeven, and adjustment zones
Real-Time Alerts Warns when nearing or breaching strikes
Trade Info Box Displays live risk, reward, delta, IV, and P&L
Setup Table Compares setups across risk tiers
Fully Configurable Works for Iron Condors or Butterflies
Risk & Position DashboardRisk & Position Dashboard
Overview
The Risk & Position Dashboard is a comprehensive trading tool designed to help traders calculate optimal position sizes, manage risk, and visualize potential profit/loss scenarios before entering trades. This indicator provides real-time calculations for position sizing based on account size, risk percentage, and stop-loss levels, while displaying multiple take-profit targets with customizable risk-reward ratios.
Key Features
Position Sizing & Risk Management:
Automatic position size calculation based on account size and risk percentage
Support for leveraged trading with maximum leverage limits
Fractional shares support for brokers that allow partial share trading
Real-time fee calculation including entry, stop-loss, and take-profit fees
Break-even price calculation including trading fees
Multi-Target Profit Management:
Support for up to 3 take-profit levels with individual portion allocations
Customizable risk-reward ratios for each take-profit target
Visual profit/loss zones displayed as colored boxes on the chart
Individual profit calculations for each take-profit level
Visual Dashboard:
Clean, customizable table display showing all key metrics
Configurable label positioning and styling options
Real-time tracking of whether stop-loss or take-profit levels have been reached
Color-coded visual zones for easy identification of risk and reward areas
Advanced Configuration:
Comprehensive input validation and error handling
Support for different chart timeframes and symbols
Customizable colors, fonts, and display options
Hide/show individual data fields for personalized dashboard views
How to Use
Set Account Parameters: Configure your account size, maximum risk percentage per trade, and trading fees in the "Account Settings" section.
Define Trade Setup: Use the "Entry" time picker to select your entry point on the chart, then input your entry price and stop-loss level.
Configure Take Profits: Set your desired risk-reward ratios and portion allocations for each take-profit level. The script supports 1-3 take-profit targets.
Analyze Results: The dashboard will automatically calculate and display position size, number of shares, potential profits/losses, fees, and break-even levels.
Visual Confirmation: Colored boxes on the chart show profit zones (green) and loss zones (red), with lines extending to current price levels.
Reset Entry and SL:
You can easily reset the entry and stop-loss by clicking the "Reset points..." button from the script's "More" menu.
This is useful if you want to quickly clear your current trade setup and start fresh without manually adjusting the points on the chart.
Calculations
The script performs sophisticated calculations including:
Position size based on risk amount and price difference between entry and stop-loss
Leverage requirements and position amount calculations
Fee-adjusted risk-reward ratios for realistic profit expectations
Break-even price including all trading costs
Individual profit calculations for partial position closures
Detailed Take-Profit Calculation Formula:
The take-profit prices are calculated using the following mathematical formula:
// Core variables:
// risk_amount = account_size * (risk_percentage / 100)
// total_risk_per_share = |entry_price - sl_price| + (entry_price * fee%) + (sl_price * fee%)
// shares = risk_amount / total_risk_per_share
// direction_factor = 1 for long positions, -1 for short positions
// Take-profit calculation:
net_win = total_risk_per_share * shares * RR_ratio
tp_price = (net_win + (direction_factor * entry_price * shares) + (entry_price * fee% * shares)) / (direction_factor * shares - fee% * shares)
Step-by-step example for a long position (based on screenshot):
Account Size: 2,000 USDT, Risk: 2% = 40 USDT
Entry: 102,062.9 USDT, Stop Loss: 102,178.4 USDT, Fee: 0.06%
Risk per share: |102,062.9 - 102,178.4| + (102,062.9 × 0.0006) + (102,178.4 × 0.0006) = 115.5 + 61.24 + 61.31 = 238.05 USDT
Shares: 40 ÷ 238.05 = 0.168 shares (rounded to 0.17 in display)
Position Size: 0.17 × 102,062.9 = 17,350.69 USDT
Position Amount (with 9x leverage): 17,350.69 ÷ 9 = 1,927.85 USDT
For 2:1 RR: Net win = 238.05 × 0.17 × 2 = 80.94 USDT
TP1 price = (80.94 + (1 × 102,062.9 × 0.17) + (102,062.9 × 0.0006 × 0.17)) ÷ (1 × 0.17 - 0.0006 × 0.17) = 101,464.7 USDT
For 3:1 RR: TP2 price = 101,226.7 USDT (following same formula with RR=3)
This ensures that after accounting for all fees, the actual risk-reward ratio matches the specified target ratio.
Risk Management Features
Maximum Trade Amount: Optional setting to limit position size regardless of account size
Leverage Limits: Built-in maximum leverage protection
Fee Integration: All calculations include realistic trading fees for accurate expectations
Validation: Automatic checking that take-profit portions sum to 100%
Historical Tracking: Visual indication when stop-loss or take-profit levels are reached (within last 5000 bars)
Understanding Max Trade Amount - Multiple Simultaneous Trades:
The "Max Trade Amount" feature is designed for traders who want to open multiple positions simultaneously while maintaining proper risk management. Here's how it works:
Key Concept:
- Risk percentage (2%) always applies to your full Account Size
- Max Trade Amount limits the capital allocated per individual trade
- This allows multiple trades with full risk on each trade
Example from Screenshot:
Account Size: 2,000 USDT
Max Trade Amount: 500 USDT
Risk per Trade: 2% × 2,000 = 40 USDT per trade
Stop Loss Distance: 0.11% from entry
Result: Position Size = 17,350.69 USDT with 35x leverage
Total Risk (including fees): 40.46 USDT
Multiple Trades Strategy:
With this setup, you can open:
Trade 1: 40 USDT risk, 495.73 USDT position amount (35x leverage)
Trade 2: 40 USDT risk, 495.73 USDT position amount (35x leverage)
Trade 3: 40 USDT risk, 495.73 USDT position amount (35x leverage)
Trade 4: 40 USDT risk, 495.73 USDT position amount (35x leverage)
Total Portfolio Exposure:
- 4 simultaneous trades = 4 × 495.73 = 1,982.92 USDT position amount
- Total risk exposure = 4 × 40 = 160 USDT (8% of account)
Volume Delta & Divergence (VDD) by CoryP1990 – Quant ToolkitVolume Delta & Divergence (VDD) visualizes directional order flow by tracking session-aware Cumulative Volume Delta (CVD) and highlighting structural mismatches between price pivots and CVD. It’s designed to catch persistent buying/selling pressure and to flag divergences where price moves without supporting order flow.
How it works
Per-bar delta: classify ticks as uptick or downtick using price change inside each bar; compute delta = uptickVol − downtickVol.
Cumulative Delta (CVD): sum delta across the session (optional continuous mode available).
Smooth: apply an EMA to the CVD (CVD-EMA) to reduce noise and reveal structural shifts.
Divergence detection: detect price pivots (left/right = X bars); sample the CVD-EMA at the exact pivot bars and compare the last two price pivots vs the corresponding CVD-EMA values.
Bear divergence: price makes a higher high while CVD-EMA makes a lower high → fading buy pressure at the top.
Bull divergence: price makes a lower low while CVD-EMA makes a higher low → improving buying pressure into the lows.
Markers: non-repainting pivot confirmation requirement (markers appear only after pivots are confirmed) and markers are placed on the actual pivot bar for clarity.
Visuals / legend
Teal line: CVD-EMA (smoothed cumulative delta). Rising → net buying pressure; falling → net selling pressure.
Red triangle (above): Bear divergence - price HH vs CVD LH.
Green triangle (below): Bull divergence - price LL vs CVD HL.
No background tint - VDD is a structural order flow tool (markers + CVD line only). Use the VWMA / trend overlays to provide directional context.
Use cases
Detect hidden exhaustion at highs (fade setups) and hidden accumulation at lows (bounce setups).
Confirm or invalidate momentum moves: price rising but CVD falling warns the move lacks order flow support.
Spot campaign-style pressure across a session (session reset) versus multi-day campaigns (disable reset).
Combine with VWMA(50) or higher-TF alignment to filter signals and increase quality.
Defaults
CVD EMA length = 34
Pivot left/right = 5
Reset CVD at session start = ON (recommended for intraday)
Show raw CVD = OFF
Marker size = small (use normal for screenshots)
Example — META (5m, 5-day view)
The 5-day time range 5-minute interval on META shows the pattern VDD is built for: a midday bear divergence (price ticks to a marginal high while the CVD-EMA flattens and then rolls lower) that precedes a multi-hour drift lower, and later bull divergences near intraday lows where the CVD-EMA prints higher lows as price prints lower lows, followed by constructive bounces. With resetSession=ON you can see these flows replay across sessions and judge whether a divergence is isolated or repeated (higher-quality).
Practical tips
Default demo: 5-minute chart on liquid names (META, AAPL, SPY) - lenEMA=34, pivot=5, resetSession=ON.
Scalp: 1m with shorter EMA (e.g., 13) and pivot=3.
Swing / campaign: 4H/Daily with resetSession=OFF and longer EMA (e.g., 89).
Filter with VWMA(50) and require above-average volume at the pivot region for higher-probability signals.
Use alerts (script exposes bear/bull alertconditions) to monitor divergences in real time.
Limitations / disclaimers
Markers are confirmation-based (non-repainting), i.e. they appear after the pivot completes, not as a predictive tick.
No single divergence equals a trade; combine with trend, volume, and risk management.
Part of the Quant Toolkit — transparent, open-source indicators for modern quantitative analysis. Built by CoryP1990.
ScalpGawd Risk Reward//@version=5
indicator("ScalpGawd Risk Reward", overlay=true)
i_fromDate = input.time(timestamp("2024-02-01T00:00:00"), title="Entry Time")
i_entryPrice = input.float(4000, "Entry Price")
i_slPrice = input.float(3900, "Stop Loss Price")
i_distance = input.int(100, "Horizontal Distance (in Time Units)", group="Styling")
i_entryColor = input.color(color.white, "Entry Line", inline="Entry", group="Styling")
i_entryStyle = input.string("solid", title="", options= , inline="Entry", group="Styling")
i_entryWidth = input.int(1, "", inline="Entry", group="Styling")
i_slColor = input.color(color.red, "SL Line", inline="SL", group="Styling")
i_slStyle = input.string("solid", title="", options= , inline="SL", group="Styling")
i_slWidth = input.int(2, "", inline="SL", group="Styling")
i_tpColor = input.color(color.green, "TP Line", inline="TP", group="Styling")
i_tpStyle = input.string("solid", title="", options= , inline="TP", group="Styling")
i_tpWidth = input.int(2, "", inline="TP", group="Styling")
i_labelSize = input.string("tiny", "Label Size", options= , group="Label")
i_labelOffset = input.int(2, "Label Offset", group="Label")
i_useTP1 = input.bool(true, "1", inline="1", group="Show Take Profit")
i_useTP2 = input.bool(true, "2", inline="1", group="Show Take Profit")
i_useTP3 = input.bool(true, "3", inline="1", group="Show Take Profit")
i_useTP4 = input.bool(true, "4", inline="1", group="Show Take Profit")
i_useTP5 = input.bool(true, "5", inline="1", group="Show Take Profit")
i_useTP6 = input.bool(true, "6", inline="1", group="Show Take Profit")
i_useTP7 = input.bool(true, "7", inline="1", group="Show Take Profit")
i_useTP8 = input.bool(true, "8", inline="1", group="Show Take Profit")
i_useTP9 = input.bool(true, "9", inline="1", group="Show Take Profit")
i_useTP10 = input.bool(true, "10", inline="1", group="Show Take Profit")
var int barDistance = na
if bar_index < 2
barDistance := time - time
else
barDistance := math.min(barDistance, time - time )
int distanceInTime = barDistance * i_distance
var line entryLine = na, line.delete(entryLine)
var line stopLossLine = na, line.delete(stopLossLine)
var line tpLine1 = na, line.delete(tpLine1)
var line tpLine2 = na, line.delete(tpLine2)
var line tpLine3 = na, line.delete(tpLine3)
var line tpLine4 = na, line.delete(tpLine4)
var line tpLine5 = na, line.delete(tpLine5)
var line tpLine6 = na, line.delete(tpLine6)
var line tpLine7 = na, line.delete(tpLine7)
var line tpLine8 = na, line.delete(tpLine8)
var line tpLine9 = na, line.delete(tpLine9)
var line tpLine10 = na, line.delete(tpLine10)
var label entryLabel = na, label.delete(entryLabel)
var label slLabel = na, label.delete(slLabel)
var label tpLabel1 = na, label.delete(tpLabel1)
var label tpLabel2 = na, label.delete(tpLabel2)
var label tpLabel3 = na, label.delete(tpLabel3)
var label tpLabel4 = na, label.delete(tpLabel4)
var label tpLabel5 = na, label.delete(tpLabel5)
var label tpLabel6 = na, label.delete(tpLabel6)
var label tpLabel7 = na, label.delete(tpLabel7)
var label tpLabel8 = na, label.delete(tpLabel8)
var label tpLabel9 = na, label.delete(tpLabel9)
var label tpLabel10 = na, label.delete(tpLabel10)
float i_tp1Price = i_entryPrice + (i_entryPrice - i_slPrice)
float i_tp2Price = i_entryPrice + (i_entryPrice - i_slPrice) * 2
float i_tp3Price = i_entryPrice + (i_entryPrice - i_slPrice) * 3
float i_tp4Price = i_entryPrice + (i_entryPrice - i_slPrice) * 4
float i_tp5Price = i_entryPrice + (i_entryPrice - i_slPrice) * 5
float i_tp6Price = i_entryPrice + (i_entryPrice - i_slPrice) * 6
float i_tp7Price = i_entryPrice + (i_entryPrice - i_slPrice) * 7
float i_tp8Price = i_entryPrice + (i_entryPrice - i_slPrice) * 8
float i_tp9Price = i_entryPrice + (i_entryPrice - i_slPrice) * 9
float i_tp10Price = i_entryPrice + (i_entryPrice - i_slPrice) * 10
f_getStyle(_style) =>
ret = line.style_solid
if _style == "dotted"
ret := line.style_dotted
else if _style == "dashed"
ret := line.style_dashed
ret
f_getLabelSize() =>
ret = size.normal
if i_labelSize == "small"
ret := size.small
else if i_labelSize == "tiny"
ret := size.tiny
ret
entryLine := line.new(i_fromDate, i_entryPrice, i_fromDate + distanceInTime, i_entryPrice, xloc=xloc.bar_time, color=i_entryColor, width=i_entryWidth, style=f_getStyle(i_entryStyle))
stopLossLine := line.new(i_fromDate, i_slPrice, i_fromDate + distanceInTime, i_slPrice, xloc=xloc.bar_time, color=i_slColor, width=i_slWidth, style=f_getStyle(i_slStyle))
tpLine1 := i_useTP1 ? line.new(i_fromDate, i_tp1Price, i_fromDate + distanceInTime, i_tp1Price, xloc=xloc.bar_time, color=i_tpColor, width=i_tpWidth, style=f_getStyle(i_tpStyle)) : na
tpLine2 := i_useTP2 ? line.new(i_fromDate, i_tp2Price, i_fromDate + distanceInTime, i_tp2Price, xloc=xloc.bar_time, color=i_tpColor, width=i_tpWidth, style=f_getStyle(i_tpStyle)) : na
tpLine3 := i_useTP3 ? line.new(i_fromDate, i_tp3Price, i_fromDate + distanceInTime, i_tp3Price, xloc=xloc.bar_time, color=i_tpColor, width=i_tpWidth, style=f_getStyle(i_tpStyle)) : na
tpLine4 := i_useTP4 ? line.new(i_fromDate, i_tp4Price, i_fromDate + distanceInTime, i_tp4Price, xloc=xloc.bar_time, color=i_tpColor, width=i_tpWidth, style=f_getStyle(i_tpStyle)) : na
tpLine5 := i_useTP5 ? line.new(i_fromDate, i_tp5Price, i_fromDate + distanceInTime, i_tp5Price, xloc=xloc.bar_time, color=i_tpColor, width=i_tpWidth, style=f_getStyle(i_tpStyle)) : na
tpLine6 := i_useTP6 ? line.new(i_fromDate, i_tp6Price, i_fromDate + distanceInTime, i_tp6Price, xloc=xloc.bar_time, color=i_tpColor, width=i_tpWidth, style=f_getStyle(i_tpStyle)) : na
tpLine7 := i_useTP7 ? line.new(i_fromDate, i_tp7Price, i_fromDate + distanceInTime, i_tp7Price, xloc=xloc.bar_time, color=i_tpColor, width=i_tpWidth, style=f_getStyle(i_tpStyle)) : na
tpLine8 := i_useTP8 ? line.new(i_fromDate, i_tp8Price, i_fromDate + distanceInTime, i_tp8Price, xloc=xloc.bar_time, color=i_tpColor, width=i_tpWidth, style=f_getStyle(i_tpStyle)) : na
tpLine9 := i_useTP9 ? line.new(i_fromDate, i_tp9Price, i_fromDate + distanceInTime, i_tp9Price, xloc=xloc.bar_time, color=i_tpColor, width=i_tpWidth, style=f_getStyle(i_tpStyle)) : na
tpLine10 := i_useTP10 ? line.new(i_fromDate, i_tp10Price, i_fromDate + distanceInTime, i_tp10Price, xloc=xloc.bar_time, color=i_tpColor, width=i_tpWidth, style=f_getStyle(i_tpStyle)) : na
entryLabel := label.new(i_fromDate + barDistance * i_labelOffset, i_entryPrice, text="Entry @ " + str.tostring(i_entryPrice, '#.##'), xloc=xloc.bar_time, yloc=yloc.price, textcolor=i_entryColor, style=label.style_none,textalign = text.align_center, size=f_getLabelSize())
slLabel := label.new(i_fromDate + barDistance * i_labelOffset, i_slPrice, text="Stop Loss " + str.tostring((i_slPrice - i_entryPrice) / syminfo.mintick, "#")+ " Ticks @ " + str.tostring(i_slPrice, '#.##'), xloc=xloc.bar_time, yloc=yloc.price, textcolor=i_slColor, style=label.style_none,textalign = text.align_center, size=f_getLabelSize())
tpLabel1 := i_useTP1 ? label.new(i_fromDate + barDistance * i_labelOffset, i_tp1Price, text="Target 1 " + str.tostring((i_tp1Price - i_entryPrice) / syminfo.mintick, "#")+ " Ticks @ " + str.tostring(i_tp1Price, '#.##'), xloc=xloc.bar_time, yloc=yloc.price, textcolor=i_tpColor, style=label.style_none,textalign = text.align_center, size=f_getLabelSize()) : na
tpLabel2 := i_useTP2 ? label.new(i_fromDate + barDistance * i_labelOffset, i_tp2Price, text="Target 2 " + str.tostring((i_tp2Price - i_entryPrice) / syminfo.mintick, "#")+ " Ticks @ " + str.tostring(i_tp2Price, '#.##'), xloc=xloc.bar_time, yloc=yloc.price, textcolor=i_tpColor, style=label.style_none,textalign = text.align_center, size=f_getLabelSize()) : na
tpLabel3 := i_useTP3 ? label.new(i_fromDate + barDistance * i_labelOffset, i_tp3Price, text="Target 3 " + str.tostring((i_tp3Price - i_entryPrice) / syminfo.mintick, "#")+ " Ticks @ " + str.tostring(i_tp3Price, '#.##'), xloc=xloc.bar_time, yloc=yloc.price, textcolor=i_tpColor, style=label.style_none,textalign = text.align_center, size=f_getLabelSize()) : na
tpLabel4 := i_useTP4 ? label.new(i_fromDate + barDistance * i_labelOffset, i_tp4Price, text="Target 4 " + str.tostring((i_tp4Price - i_entryPrice) / syminfo.mintick, "#")+ " Ticks @ " + str.tostring(i_tp4Price, '#.##'), xloc=xloc.bar_time, yloc=yloc.price, textcolor=i_tpColor, style=label.style_none,textalign = text.align_center, size=f_getLabelSize()) : na
tpLabel5 := i_useTP5 ? label.new(i_fromDate + barDistance * i_labelOffset, i_tp5Price, text="Target 5 " + str.tostring((i_tp5Price - i_entryPrice) / syminfo.mintick, "#")+ " Ticks @ " + str.tostring(i_tp5Price, '#.##'), xloc=xloc.bar_time, yloc=yloc.price, textcolor=i_tpColor, style=label.style_none,textalign = text.align_center, size=f_getLabelSize()) : na
tpLabel6 := i_useTP6 ? label.new(i_fromDate + barDistance * i_labelOffset, i_tp6Price, text="Target 6 " + str.tostring((i_tp6Price - i_entryPrice) / syminfo.mintick, "#")+ " Ticks @ " + str.tostring(i_tp6Price, '#.##'), xloc=xloc.bar_time, yloc=yloc.price, textcolor=i_tpColor, style=label.style_none,textalign = text.align_center, size=f_getLabelSize()) : na
tpLabel7 := i_useTP7 ? label.new(i_fromDate + barDistance * i_labelOffset, i_tp7Price, text="Target 7 " + str.tostring((i_tp7Price - i_entryPrice) / syminfo.mintick, "#")+ " Ticks @ " + str.tostring(i_tp7Price, '#.##'), xloc=xloc.bar_time, yloc=yloc.price, textcolor=i_tpColor, style=label.style_none,textalign = text.align_center, size=f_getLabelSize()) : na
tpLabel8 := i_useTP8 ? label.new(i_fromDate + barDistance * i_labelOffset, i_tp8Price, text="Target 8 " + str.tostring((i_tp8Price - i_entryPrice) / syminfo.mintick, "#")+ " Ticks @ " + str.tostring(i_tp8Price, '#.##'), xloc=xloc.bar_time, yloc=yloc.price, textcolor=i_tpColor, style=label.style_none,textalign = text.align_center, size=f_getLabelSize()) : na
tpLabel9 := i_useTP9 ? label.new(i_fromDate + barDistance * i_labelOffset, i_tp9Price, text="Target 9 " + str.tostring((i_tp9Price - i_entryPrice) / syminfo.mintick, "#")+ " Ticks @ " + str.tostring(i_tp9Price, '#.##'), xloc=xloc.bar_time, yloc=yloc.price, textcolor=i_tpColor, style=label.style_none,textalign = text.align_center, size=f_getLabelSize()) : na
tpLabel10 := i_useTP10 ? label.new(i_fromDate + barDistance * i_labelOffset, i_tp10Price, text="Target 10 " + str.tostring((i_tp10Price - i_entryPrice) / syminfo.mintick, "#")+ " Ticks @ " + str.tostring(i_tp10Price, '#.##'), xloc=xloc.bar_time, yloc=yloc.price, textcolor=i_tpColor, style=label.style_none,textalign = text.align_center, size=f_getLabelSize()) : na
i_showBox = input.bool(true, "Show Background", group="Show Background")
var box greenBox = na, box.delete(greenBox)
var box redBox = na, box.delete(redBox)
f_findHighestTP() =>
ret = i_tp1Price
if i_useTP10
ret := i_tp10Price
else if i_useTP9
ret := i_tp9Price
else if i_useTP8
ret := i_tp8Price
else if i_useTP7
ret := i_tp7Price
else if i_useTP6
ret := i_tp6Price
else if i_useTP5
ret := i_tp5Price
else if i_useTP4
ret := i_tp4Price
else if i_useTP3
ret := i_tp3Price
else if i_useTP2
ret := i_tp2Price
ret
greenBox := i_showBox ? box.new(i_fromDate, i_entryPrice, i_fromDate + distanceInTime, f_findHighestTP(), xloc=xloc.bar_time, bgcolor=color.new(i_tpColor, 70), border_width = 0) : na
redBox := i_showBox ? box.new(i_fromDate, i_entryPrice, i_fromDate + distanceInTime, i_slPrice, xloc=xloc.bar_time, bgcolor=color.new(i_slColor, 70), border_width = 0) : na
Is it Time for a Pullback? Check Bars Since MA TestAn old market adage declares that “prices never move in a straight line.” Dips occur even in bullish markets. But how can traders know when prices may be due for a pullback?
Today’s script tries to answer that question by asking how many bars have passed since a stock, index or other symbol has tested a given moving average. Long periods of time without touching a line such as the 50-day simple moving average, for example, could prompt traders to be more patient.
Bars Since MA Test counts how many bars have passed since prices touched or crossed the MA in question. The resulting value is plotted in a simple histogram. Users can set the MA length and type. By default, it uses the 50-day simple moving average (SMA).
The chart above applies Bars Since MA Test to the S&P 500. It shows that the index has gone 129 bars without testing its 50-day SMA. That’s the longest since a 146-bar stretch between July 2006 and February 2007.
Other longer runs include January-August 1995 (156 bars), November 1960-June 1961 (144 bars) and April-November 1958 (158 bars).
Given the small number of comparable readings, could traders suspect the current advance is getting long in the tooth?
TradeStation has, for decades, advanced the trading industry, providing access to stocks, options and futures. If you're born to trade, we could be for you. See our Overview for more.
Past performance, whether actual or indicated by historical tests of strategies, is no guarantee of future performance or success. There is a possibility that you may sustain a loss equal to or greater than your entire investment regardless of which asset class you trade (equities, options or futures); therefore, you should not invest or risk money that you cannot afford to lose. Online trading is not suitable for all investors. View the document titled Characteristics and Risks of Standardized Options at www.TradeStation.com . Before trading any asset class, customers must read the relevant risk disclosure statements on www.TradeStation.com . System access and trade placement and execution may be delayed or fail due to market volatility and volume, quote delays, system and software errors, Internet traffic, outages and other factors.
Securities and futures trading is offered to self-directed customers by TradeStation Securities, Inc., a broker-dealer registered with the Securities and Exchange Commission and a futures commission merchant licensed with the Commodity Futures Trading Commission). TradeStation Securities is a member of the Financial Industry Regulatory Authority, the National Futures Association, and a number of exchanges.
TradeStation Securities, Inc. and TradeStation Technologies, Inc. are each wholly owned subsidiaries of TradeStation Group, Inc., both operating, and providing products and services, under the TradeStation brand and trademark. When applying for, or purchasing, accounts, subscriptions, products and services, it is important that you know which company you will be dealing with. Visit www.TradeStation.com for further important information explaining what this means.
MACD Remastered [CHE]MACD Remastered — Robust MACD with confirmed pivot-based divergence, optional signal bands, and ready-to-use alerts.
Summary
This indicator augments classic MACD with a robust, confirmed pivot-based divergence engine and an optional signal channel using Bollinger Bands. Divergence signals are only produced after a pivot is confirmed, which reduces noise from transient swings. A line-of-sight clearance check filters cases where the MACD histogram path contradicts the divergence, further cutting false flags. Histogram coloring clarifies momentum changes, while optional triangles project the same signals onto the main chart for quick context.
Motivation: Why this design?
Standard MACD divergence tools tend to fire early in volatile phases and flip during consolidation. The core idea here is to delay decision points until a pivot is confirmed and to validate the path between pivots. This addresses fake flips and improves signal credibility at the cost of some latency. Optional bands around the Signal line add context about compression and expansion without altering MACD’s core behavior.
What’s different vs. standard approaches?
Reference baseline: Classical MACD (fast and slow moving averages, Signal line, histogram) with simple divergence checks.
Architecture differences:
Confirmed pivot logic with left and right bars.
Line-of-sight clearance test across the histogram path between pivots.
Optional Signal-line Bollinger Bands with configurable length and width.
Composite “Any Divergence” alert plus separate regular and hidden alerts.
Optional main-chart triangles using forced overlay for at-a-glance context.
Practical effect: Fewer early or contradictory divergence signals, clearer momentum context via histogram colors and a visible Signal channel during compression and expansion.
How it works (technical)
The MACD line derives from a fast and a slow moving average on a chosen source. The Signal line smooths the MACD line using a selected moving average type and length. The histogram is the difference between MACD and Signal and is colored by direction and acceleration.
Divergence uses confirmed pivots: a pivot forms only after a set number of bars on the right side, so the event is locked in. The engine retrieves the last two relevant pivots and checks price movement versus the MACD histogram movement to classify regular or hidden divergence. A line-of-sight clearance routine traverses the histogram path between the two pivots and rejects the signal if the path invalidates the directional relationship. When enabled, Bollinger Bands are plotted around the Signal line; width scales with standard deviation. Programmatic alerts fire only on confirmed bars. No higher-timeframe requests are used.
Parameter Guide
Oscillator MA Type — Sets fast and slow MA family for MACD. Default: EMA. Tip: EMA is more responsive; SMA is steadier.
Fast Length — Fast MA period. Default: 12. Trade-off: Shorter is quicker but noisier.
Slow Length — Slow MA period. Default: 26. Trade-off: Longer reduces noise but adds lag.
Source — Price input. Default: Close. Tip: Use a stable source for consistency.
Signal MA Type — Moving average family for Signal. Default: EMA.
Signal Length — Smoothing of MACD into Signal. Default: 9. Trade-off: Longer smooths more, reacts slower.
Calculate Divergence — Enables divergence engine. Default: True.
Enable Bollinger Bands on Signal — Adds bands around Signal. Default: False.
BB Length — Sampling window for bands. Default: 20. Active: Only when bands are enabled.
BB StdDev — Band width in standard deviations. Default: 2.0. Bounds: between about zero point zero zero one and fifty.
Pivot Left / Pivot Right — Bars to the left and right that define a confirmed pivot. Default: five and five. Trade-off: Larger values mean stronger but slower pivots.
Min / Max Bars Between Pivots — Valid window between two pivots. Default: five and sixty. Tip: Increase minimum to reduce micro-divergences.
Detect Hidden — Include hidden divergence. Default: True.
Draw Lines — Draw connector lines on the MACD pane. Default: True.
Alerts: Enable / Regular / Hidden / Frequency / Prefix — Control alert emission, categories, cadence, and label. Defaults: Enabled, both categories on, once per bar close, prefix “MACD RM”.
Reading & Interpretation
Histogram: Columns above zero reflect positive momentum; below zero reflect negative momentum. Color shifts indicate momentum increasing or decreasing within each side.
MACD and Signal: Crosses and distance indicate momentum shifts and strength. When bands are enabled, touches and departures hint at compression and expansion around the Signal.
Divergence: Solid green lines and labels indicate regular bullish; solid red indicate regular bearish. Dashed teal and dashed orange denote hidden bullish and hidden bearish. Triangles on the main chart mirror these events for quicker visibility.
Practical Workflows & Combinations
Trend following: Use histogram color transitions with a structure filter such as higher highs and higher lows for long bias, or lower highs and lower lows for short bias. Divergence against the prevailing structure suggests caution or partial exits.
Exits and risk: In a long, regular bearish divergence near resistance can justify scaling out or tightening stops. Hidden divergence in the trend direction can support continuation but should not replace risk controls.
Multi-asset / Multi-timeframe: Works across liquid futures, forex, indices, and large-cap equities. Start with defaults on four-hour and daily; shorten lengths on intraday only when liquidity is strong.
Behavior, Constraints & Performance
Repaint and confirmation: Signals are anchored only after the right-side pivot bars complete; alerts trigger on confirmed bars. This intentionally adds latency to reduce noise.
No higher-timeframe requests: No `security` calls are used; repaint risk is primarily tied to live bars before confirmation.
Resources: Declared `max_bars_back` is five hundred. The divergence path check iterates between pivots, bounded by the maximum bars parameter. Line objects may accumulate; limits are set for lines and labels.
Known limits: Latency at sharp turns, potential misses during fast single-bar reversals, and sensitivity to extremely choppy sessions if minimum gap between pivots is set too low.
Sensible Defaults & Quick Tunin g
Starting point: EMA, twelve and twenty-six with Signal nine; pivots five and five; minimum five, maximum sixty; alerts on close; bands off.
Too many flips: Increase Signal length, raise pivot counts, and increase minimum bars between pivots. Consider disabling hidden divergence.
Too sluggish: Reduce pivot counts, lower Signal length, and enable bands to visualize early compression.
Cluttered chart: Keep lines off and rely on labels and main-chart triangles. Use the alert prefix to route events cleanly.
What this indicator is—and isn’t
This is a visualization and signal layer for MACD with confirmed, path-checked divergence and optional Signal bands. It is not a trading system, not predictive, and not a position management framework. Use it together with structure analysis, liquidity context, and explicit risk controls.
Disclaimer
The content provided, including all code and materials, is strictly for educational and informational purposes only. It is not intended as, and should not be interpreted as, financial advice, a recommendation to buy or sell any financial instrument, or an offer of any financial product or service. All strategies, tools, and examples discussed are provided for illustrative purposes to demonstrate coding techniques and the functionality of Pine Script within a trading context.
Any results from strategies or tools provided are hypothetical, and past performance is not indicative of future results. Trading and investing involve high risk, including the potential loss of principal, and may not be suitable for all individuals. Before making any trading decisions, please consult with a qualified financial professional to understand the risks involved.
By using this script, you acknowledge and agree that any trading decisions are made solely at your discretion and risk.
Do not use this indicator on Heikin-Ashi, Renko, Kagi, Point-and-Figure, or Range charts, as these chart types can produce unrealistic results for signal markers and alerts.
Best regards and happy trading
Chervolino
OSOM V6This "OSOM V6" aids trading by providing visual and signal-based insights:
Forecast Trends: Predicts how long trends might last based on history.
Breakouts: Boxes around highs/lows with volume splits; alerts on breaks for momentum entries.
Liquidity Spots: Heatmap highlights order clusters and key levels (POC orange) for potential reversals or stops.
Trend Identification: Detects bull/bear trends via VWMA/EMA bands; colors bars/candles for quick direction spotting.
Entry/Exit Signals: Generates buy/sell labels on band crossovers; includes TP (overbought/oversold via Z-score/RSI) and re-entry alerts for wicks touching bands.
Trend Forecasting: Predicts trend duration based on historical averages, helping time holds.
Breakouts: Draws boxes around pivots with buy/sell volume splits; labels breakouts for momentum trades.
Liquidity Analysis: Heatmap shows order clusters (buy/sell pools) and POC (price magnet); alerts on approaches/crosses to anticipate stops/reversals.
Overall: Reduces guesswork, spots opportunities/risks in trends, breakouts, and liquidity—ideal for scalping or swing trading in volatile markets like crypto/forex. Always backtest and combine with analysis. Spot Trends: Colors bars to show bull (green) or bear (purple) trends quickly.
Buy/Sell Signals: Labels "↑" for buy, "↓" for sell on band crosses; includes TP ("✖") for exits and re-entries ("↻") for dips/spikes.
Helps traders enter/exit smarter, spot traps, and time trades in volatile markets. Backtest before using.
BUY/SELL CROSS 1 WEEK SKIDD What it does
SRSI prints candle-attached BUY/SELL labels when StochRSI %K crosses %D in either direction—no numeric thresholds. Labels are vertically ATR-adjustable so they’re visible without clutter. A continuous MACD direction line sits above price, turning green when MACD > Signal and red when MACD < Signal.
Why it helps
Keeps entries/exits simple: true crossovers only.
Uses higher-TF StochRSI (weekly by default) to cut noise.
Visual regime filter via the color-changing MACD line.
Labels stick to the candle and move with it—clean on any zoom.
How to use
For swing trading, leave StochRSI on Weekly and enable Only signal on confirmed bar.
Use the MACD line as a directional filter: prefer BUYs when the line is green, prefer SELLs when red.
Adjust Label Vertical Distance (ATR x) so labels clear long wicks and stay readable.
Inputs
StochRSI: RSI Length, Lookback, %K/%D smoothing, Calculation TF.
Confirmation: Only signal on confirmed bar.
Labels: Vertical Distance (ATR x), Size.
MACD: Fast/Slow/Signal, MACD TF, line positioning, vertical distance, width.
Alerts
BUY (StochRSI Cross Up) and SELL (StochRSI Cross Down) included.
Notes
If you switch Only signal on confirmed bar OFF, signals can appear intra-bar and may repaint before close—use with care.
This is not financial advice; test on multiple symbols/timeframes.
Optional “Change log” (for future updates)
v1.0 — Initial public release: candle-attached StochRSI BUY/SELL labels + MACD direction line; vertical ATR spacing; weekly StochRSI default.
Session ParmezanForex Session Range Boxes (Asia, Europe, US) — visual intraday session tracker for Forex and metals.
This indicator automatically marks the three major Forex trading sessions — Asian (Tokyo), European (London), and American (New York) — directly on your chart using dynamic colored boxes.
Each box represents the full price range (High–Low) formed during that session, helping traders visualize how volatility and liquidity evolve across the global trading day.
The script is built for intraday traders and session-based strategies, especially those who monitor breakouts from the Asian range or reactions during London–New York overlaps.
⚙️ Features
• Accurate session timing (UTC+3 / Moscow Time) — Asia: 03:00–12:00, Europe: 11:00–20:00, US: 16:00–01:00.
• Dynamic range boxes: each box expands in real time as new highs and lows are set during the session.
• Clear visual separation: each session is shown in its own color (blue for Asia, orange for Europe, green for US).
• Automatic daily reset — new boxes start every new session.
• Intraday focus only — visible up to the 1-hour timeframe (M1–H1) for clarity.
• Transparent design — semi-transparent fills keep candles readable even when sessions overlap.
• Lightweight performance — optimized use of box.new() and var variables avoids lag on lower timeframes.
🧭 Typical Use-Cases
• Identify Asian session ranges and watch for London breakouts or New York reversals.
• Visually align your intraday strategy with session volatility cycles.
• Combine with VWAP, liquidity zones, or market profile indicators for deeper confluence.
• Spot overlapping sessions — often the most active periods of the day.
Volumatic VIDYA Optimized Volumatic VIDYA Optimized is a Pine Script® v6 indicator that combines a Variable Index Dynamic Average (VIDYA) with ATR-based dynamic bands, pivot-based liquidity zones, and volume delta analysis to identify trend direction and high-probability support/resistance levels.
It is forked from the excellent work by BigBeluga: "Variable Index Dynamic Average" or "Volumatic VIDYA" indicator.
Key Features:
Adaptive VIDYA Trend Line: Smooths price action based on momentum (CMO), switching between upper/lower ATR bands during uptrends/downtrends.
Liquidity Zones: Detects swing pivots and draws extendable dotted lines at key levels; short lines terminate with volume-labeled markers when price crosses.
Volume Delta Tracking: Accumulates buy/sell volume per trend, displaying Buy/Sell volumes and % Delta on the last bar.
Visual Enhancements: Trend-colored fill with optional shadow, clean labels, and circle markers at liquidity grabs.
Performance Optimized: Largely enhanced. It also limits lines/labels to prevent lag; uses safe array management.
Alerts:
Trend Up / Trend Down / Trend Changed
Ideal for trend-following, liquidity hunting, and volume-confirmed reversals. Clean, efficient, and highly visual.
无敌大饺子缺口Indicator Name:Dumpling Price Action Gaps (Price Action Gaps)
Type: Price Action Indicator / Technical Analysis Tool
Applicable Markets: Stocks, Futures, Forex, Cryptocurrencies, and other charting markets
Timeframe: Any timeframe; supports multi-timeframe EMA smoothing
Indicator Overview
This indicator is a visual analysis tool based on Price Action and Fair Value Gaps (FVGs). It automatically identifies bullish and bearish gaps in the market, helping traders spot potential support and resistance areas, gap fill opportunities, and market sentiment turning points.
By combining EMA (Exponential Moving Average) and ATR (Average True Range) filtering, the indicator clearly plots on the chart:
Bullish Gaps: Highlight rapid upward price gaps.
Bearish Gaps: Highlight rapid downward price gaps.
Mitigation Zones: Mark areas where gaps are likely to be filled, assisting in judging potential price retracements.
Historical Gaps: Optionally display past gaps for multi-timeframe analysis.
Smoothed EMA20: Provides both current and multi-timeframe trend references to make gap analysis more reliable.
Key Features
Intelligent Gap Detection: Automatically identifies gap types by comparing the high and low of the current bar with the previous two bars.
Fair Value Filtering: Uses ATR to filter out insignificant gaps, reducing noise.
Visual Gap Fill Percentage: Displays the percentage of gap fill, helping traders gauge the strength of retracement.
Multi-Timeframe Smoothing: Supports current and 5-minute smoothed EMA to capture short-term trend impacts.
Flexible Across Timeframes: Suitable for intraday or swing trading strategies.
Use Cases
Support/Resistance Identification: Gap tops and bottoms can act as potential support or resistance levels.
Trend Continuation Confirmation: If price breaks through a gap without filling it, the trend is likely to continue.
Retracement Strategy: Gap fill zones can serve as potential entry or exit points for short-term trades.
Risk Management: Historical gaps help identify high-risk zones, optimizing stop-loss placement.
中文:
指标介绍
指标名称:无敌大饺子价格行为缺口(Dumpling Price Action Gaps)
类型:价格行为指标 / 技术分析工具
适用市场:股票、期货、外汇、加密货币等各类K线图市场
周期适用:任意时间周期,指标支持跨周期 EMA 平滑显示
功能概述
是一种基于价格行为(Price Action)和公允价值缺口(Fair Value Gap, FVG)的可视化分析工具。它通过自动识别市场中的看涨和看跌缺口,帮助交易者发现潜在的支撑与阻力区域、回补机会以及市场情绪转折点。
该指标结合了 EMA(指数移动平均)和 ATR(平均真实波幅)过滤,能够在图表上清晰绘制出:
看涨缺口(Bullish Gap):显示市场快速上涨形成的价格缺口。
看跌缺口(Bearish Gap):显示市场快速下跌形成的价格缺口。
回补区域(Mitigation Zone):标记缺口可能被回补的区域,辅助判断价格回调的概率。
历史缺口(Historical Gaps):可选择显示历史上形成的缺口,便于进行多周期分析。
平滑 EMA20(Smoothed EMA20):提供当前周期和跨周期的趋势参考,使缺口分析更加可靠。
核心特点
智能缺口识别:通过比较当前 K 线与前两根 K 线的高低价,自动判断缺口类型。
公允价值过滤:结合 ATR 值过滤掉微小缺口,避免噪音干扰。
可视化百分比显示:支持显示缺口回补的百分比,让交易者直观判断回补强弱。
跨周期平滑:可显示当前周期和平滑 5 分钟 EMA,帮助捕捉短期趋势与缺口冲击。
多周期适用:支持不同时间周期图表,可灵活应用于日内交易或波段策略。
使用场景
支撑/阻力判断:缺口上沿和下沿可以作为潜在支撑或阻力区域。
趋势延续确认:价格突破缺口并未回补时,表明趋势可能继续延续。
回调策略:当价格回补缺口至回补区域时,可作为短线交易的进出参考。
风险管理:历史缺口帮助交易者识别潜在高风险区域,优化止损设置。
SM ZONE AND IC CANDLES OANDA WINTER274
SM AND IC MARKING INDICATOR where you can mark the daily indicator for the SM zone and london and new york zones automatically for OANDA FOR WINTER TIMINGS
Multi-TimeFrame RSI Divergence1. Table Usage
The table shows all divergences for each timeframe (5m → 4h).
Columns:
Bull Reg → Regular bullish divergence
Bear Reg → Regular bearish divergence
Bull Hid → Hidden bullish divergence
Bear Hid → Hidden bearish divergence
Movable via inputs: adjust Table X Position (bars from left) and Table Y Position (price level).
Customizable timeframe text color: set via TF Color input.
2. Reading Divergences
Lines on the chart:
Solid green/red = regular divergence
Dotted = hidden divergence
Dashed = RSI side of divergence
Labels appear at the pivot points to indicate type and timeframe.
3. Timeframes
Works on 5m, 15m, 30m, 1h, and 4h.
Each timeframe is independent, so divergences are correctly detected even if higher or lower TFs don’t show anything yet.
4. Adjusting Sensitivity
Pivot Left Bars / Pivot Right Bars → controls how sensitive pivots are.
Lower values = more pivots detected (shorter-term swings).
Higher values = smoother pivots, fewer false signals.
Pivot search lookback → how far back the script searches for pivots.
RSI Length → default is 14, but can be adjusted for faster/slower RSI responsiveness.
5. Line and Label Cleanup
Expire lines/labels after N bars → prevents the chart from cluttering.
Older lines/labels are automatically deleted after this many bars.
6. Practical Tips
Use multiple charts or TradingView layouts: you can run the script on one chart and visually track divergences across TFs without switching.
Combine with support/resistance levels or trend analysis for higher-probability trades.
Watch for hidden divergences on pullbacks → often signal trend continuation.
ORB + Liquidity Sweeps**Title:** ORB + Liquidity Sweeps
**Description:**
The **“ORB + Liquidity Sweeps”** indicator combines the *Opening Range Breakout (ORB)* model with dynamic *liquidity sweep detection* to identify high-probability reversal or continuation setups during key session periods. This script visually maps where price sweeps liquidity at highs/lows and tracks how those sweeps interact with the defined ORB range — offering clear, data-driven confluence zones for professional intraday execution.
---
### 🔹 FEATURES OVERVIEW
**1. Liquidity Sweeps **
* Detects **bullish** and **bearish liquidity grabs** using swing highs/lows based on user-defined pivot length.
* Supports three detection modes:
* **Only Wicks:** Marks when price pierces a level with a wick and rejects.
* **Only Outbreaks & Retest:** Confirms full breaks and retests.
* **Wicks + Outbreaks & Retest:** Combines both behaviors for full context.
* Automatically shades sweep zones and extends them until price mitigates or breaks through.
* Visuals:
* 🟩 **Bullish sweeps** = green wick/zone
* 🟥 **Bearish sweeps** = red wick/zone
* Configurable color transparency, max bar extension, and style options.
* Generates real-time **alerts** for each sweep:
* `🔼 Bullish Wick Sweep detected`
* `🔽 Bearish Wick Sweep detected`
---
**2. Opening Range Breakout (ORB)**
* Automatically defines the **Opening Range** using a customizable session window (default: *09:30–09:45 EST*).
* Tracks **ORB High** and **ORB Low** in real time.
* Displays the range only on intraday charts within the selected time window.
* Sends breakout alerts:
* `ORB Breakout Up` → Price crosses above ORB high.
* `ORB Breakout Down` → Price crosses below ORB low.
* Ideal for identifying initial volatility expansion zones and potential directional bias for the session.
---
**3. ORB–Liquidity Sweep Interaction**
* Highlights when **liquidity sweep zones overlap or touch the ORB range**, signaling a high-interest confluence zone.
* Issues alerts when interaction occurs:
* `Bull Sweep interacts with ORB`
* `Bear Sweep interacts with ORB`
* Useful for traders looking to align **liquidity events with session structure** to time entries.
---
**4. Built-in Alert System**
All alerts are pre-configured and can be activated directly from the TradingView “Add Alert” menu:
* **Bullish Wick Sweep**
* **Bearish Wick Sweep**
* **ORB Breakout Up**
* **ORB Breakout Down**
* **Bull Sweep interacts with ORB**
* **Bear Sweep interacts with ORB**
---
### ⚙️ HOW TO USE
1. **Add to Chart:** Apply on any intraday timeframe (preferably 1–15 min).
2. **Configure ORB Window:** Set the session start and duration (e.g., `09:30–09:45`options , 08:30 -08:45 futures ) for your trading region.
3. **Select Sweep Mode:** Choose from “Only Wicks,” “Only Outbreaks & Retest,” or “Wicks + Outbreaks & Retest.”
4. **Watch for Confluence:**
* A **sweep near ORB levels** often signals exhaustion or potential reversal.
* A **breakout through ORB following a sweep** suggests momentum continuation.
5. **Set Alerts:** Enable relevant alerts for automatic notifications when sweeps or ORB breaks occur.
---
### 📊 TRADING APPLICATIONS
* Identify **stop hunts** and **liquidity grabs** around ORB levels.
* Combine with volume, delta, or order flow indicators for confirmation.
* Use confluence zones (Sweep + ORB overlap) as **entry or take-profit** points.
* Excellent for **index futures**, **forex**, and **high-volume equities** during the opening session.
---
**Developed by:** SB
**Category:** Price Action / Liquidity / Session Structure
**Compatible Timeframes:** Intraday (1m–5m recommended)
**Alerts Included:** ✅
**Overlay:** Yes
**Version:** v6
---
*This tool is designed for advanced price-action traders who study liquidity behavior, ORB structure, and intraday expansion patterns.*
SSL Hybrid ScalperIt's a ready to trade script V5, that takes the original SSL Hybrid logic and optimizes it for XAUUSD scalping on 1min to 15min charts for buy & sell signals.
Delta Money Flow IndexThe Delta Money Flow Index is a modified version of the traditional Money Flow Index that uses directional volume instead of total volume to measure buying and selling pressure in a different way.
It helps traders identify overbought/oversold conditions based on actual buy/sell pressure rather than just total volume. It's designed for traders who want to see if price movements are backed by genuine buying or selling activity.
How to use it:
- Values above 80 indicate overbought conditions
- Values below 20 indicate oversold conditions
- The 50 level acts as a neutral zone. Above suggests buyers are in control, below suggests sellers are in control.
- Traders can check for divergences for potential reversal signals
- Works best on intraday timeframes where delta volume is most meaningful
What makes it different:
Unlike the standard MFI which uses total volume, the Delta MFI calculates an approximation of volume delta by assigning positive volume to up-closing candles and negative volume to down-closing candles.
This means:
- It focuses on directional pressure, not just activity
- Filters out low-conviction volume that doesn't move price
- Provides clearer signals when actual buying/selling dominates
The indicator includes visual aids like background colors for overbought/oversold and a fill showing whether the Delta MFI is above or below the 50 midpoint for quick interpretation.






















