PROTECTED SOURCE SCRIPT
تم تحديثه ADR Focus

ADR Focus Indicator - Documentation
Overview
ADR Focus is a comprehensive trading indicator designed for intraday traders who use Average Daily Range (ADR) strategies. It provides a visual dashboard that tracks daily price movements against ADR-based targets, helping traders identify potential entry and exit points based on statistical price ranges.
Key Features
1. ADR-Based Price Levels
The indicator calculates and displays multiple price levels based on the Average Daily Range:
Daily Open Line: The opening price of each trading day
Previous Daily Midpoint: The midpoint between the previous day's open and close
High Risk Levels (1.5x ADR): Closer targets with higher probability of being hit
Low Risk Levels (2.0x ADR): Further targets with lower probability but better risk/reward
2. Dynamic Color-Coded Lines
Lines are automatically colored based on the day's trend direction:
Bullish Days (Heikin Ashi close > open):
Upper lines = Take Profit targets (green shades)
Lower lines = Stop Loss levels (red shades)
Bearish Days (Heikin Ashi close < open):
Lower lines = Take Profit targets (green shades)
Upper lines = Stop Loss levels (red shades)
3. Interactive Dashboard Table
A comprehensive table displaying:
Daily Status Section: Current day's open price and whether TP/SL levels have been hit
Daily Breakdown: Historical performance for multiple days showing:
Date and day of week
Trend direction (Bull/Bear)
ADR hit status with multi-day tracking
Optional: Distance between open and previous daily midpoint (%)
Summary Row: Win rate calculation and total TP/SL hits
4. Multi-Day Hit Detection
The indicator tracks when ADR levels are hit across multiple days, showing:
Which level was hit (TP 1.5x, TP 2.0x, SL 1.5x, or SL 2.0x)
How many days it took to hit the level (D+1, D+2, etc.)
Customizable Settings
ADR Settings
ADR Length: Number of days used to calculate the average daily range (default: 21)
High Risk Multiplier: Multiplier for closer targets (default: 1.5x)
Low Risk Multiplier: Multiplier for further targets (default: 2.0x)
Max Days: Number of days to display in the dashboard (default: 5)
Line Display Settings
Toggle visibility for each line type (Open, Mid, High Risk, Low Risk)
Customize colors for all line types
Adjust line width and style (Solid, Dashed, Dotted)
Table Display Settings
Position: Choose from 9 positions on the chart
Text Size: Adjust from tiny to huge
Local Timezone: Set your timezone for accurate daily calculations
How It Works
ADR Calculation: The indicator calculates the average range (high - low) over the specified period
Level Generation: Based on the daily open, it creates symmetrical levels above and below using ADR multipliers
Trend Detection: Uses Heikin Ashi candles to determine the day's bias (bullish/bearish)
Performance Tracking: Monitors whether price hits the calculated levels, both intraday and across multiple days
Win Rate Analysis: Calculates the percentage of successful TP hits versus SL hits
Use Cases
For Day Traders
Identify potential reversal points based on statistical price extremes
Set profit targets and stop losses based on historical volatility
Track performance of ADR-based strategies over time
For Swing Traders
Monitor multi-day level hits to understand market momentum
Use the dashboard to identify when markets are overextended
Analyze win rates to optimize entry timing
For Strategy Development
Backtest ADR-based approaches with visual confirmation
Adjust multipliers to find optimal risk/reward ratios
Study the relationship between daily opens and previous midpoints
Visual Indicators
Red-highlighted rows: Days where stop loss was hit
Green trend cells: Bullish days
Red trend cells: Bearish days
"Today" label: Clearly identifies the current trading day
Best Practices
Combine with other indicators: ADR levels work best when confirmed by other technical analysis tools
Monitor win rates: Adjust your approach if win rates drop below acceptable levels
Consider market conditions: ADR strategies may perform differently in trending vs. ranging markets
Use appropriate timeframes: This indicator is optimized for daily analysis of intraday movements
Overview
ADR Focus is a comprehensive trading indicator designed for intraday traders who use Average Daily Range (ADR) strategies. It provides a visual dashboard that tracks daily price movements against ADR-based targets, helping traders identify potential entry and exit points based on statistical price ranges.
Key Features
1. ADR-Based Price Levels
The indicator calculates and displays multiple price levels based on the Average Daily Range:
Daily Open Line: The opening price of each trading day
Previous Daily Midpoint: The midpoint between the previous day's open and close
High Risk Levels (1.5x ADR): Closer targets with higher probability of being hit
Low Risk Levels (2.0x ADR): Further targets with lower probability but better risk/reward
2. Dynamic Color-Coded Lines
Lines are automatically colored based on the day's trend direction:
Bullish Days (Heikin Ashi close > open):
Upper lines = Take Profit targets (green shades)
Lower lines = Stop Loss levels (red shades)
Bearish Days (Heikin Ashi close < open):
Lower lines = Take Profit targets (green shades)
Upper lines = Stop Loss levels (red shades)
3. Interactive Dashboard Table
A comprehensive table displaying:
Daily Status Section: Current day's open price and whether TP/SL levels have been hit
Daily Breakdown: Historical performance for multiple days showing:
Date and day of week
Trend direction (Bull/Bear)
ADR hit status with multi-day tracking
Optional: Distance between open and previous daily midpoint (%)
Summary Row: Win rate calculation and total TP/SL hits
4. Multi-Day Hit Detection
The indicator tracks when ADR levels are hit across multiple days, showing:
Which level was hit (TP 1.5x, TP 2.0x, SL 1.5x, or SL 2.0x)
How many days it took to hit the level (D+1, D+2, etc.)
Customizable Settings
ADR Settings
ADR Length: Number of days used to calculate the average daily range (default: 21)
High Risk Multiplier: Multiplier for closer targets (default: 1.5x)
Low Risk Multiplier: Multiplier for further targets (default: 2.0x)
Max Days: Number of days to display in the dashboard (default: 5)
Line Display Settings
Toggle visibility for each line type (Open, Mid, High Risk, Low Risk)
Customize colors for all line types
Adjust line width and style (Solid, Dashed, Dotted)
Table Display Settings
Position: Choose from 9 positions on the chart
Text Size: Adjust from tiny to huge
Local Timezone: Set your timezone for accurate daily calculations
How It Works
ADR Calculation: The indicator calculates the average range (high - low) over the specified period
Level Generation: Based on the daily open, it creates symmetrical levels above and below using ADR multipliers
Trend Detection: Uses Heikin Ashi candles to determine the day's bias (bullish/bearish)
Performance Tracking: Monitors whether price hits the calculated levels, both intraday and across multiple days
Win Rate Analysis: Calculates the percentage of successful TP hits versus SL hits
Use Cases
For Day Traders
Identify potential reversal points based on statistical price extremes
Set profit targets and stop losses based on historical volatility
Track performance of ADR-based strategies over time
For Swing Traders
Monitor multi-day level hits to understand market momentum
Use the dashboard to identify when markets are overextended
Analyze win rates to optimize entry timing
For Strategy Development
Backtest ADR-based approaches with visual confirmation
Adjust multipliers to find optimal risk/reward ratios
Study the relationship between daily opens and previous midpoints
Visual Indicators
Red-highlighted rows: Days where stop loss was hit
Green trend cells: Bullish days
Red trend cells: Bearish days
"Today" label: Clearly identifies the current trading day
Best Practices
Combine with other indicators: ADR levels work best when confirmed by other technical analysis tools
Monitor win rates: Adjust your approach if win rates drop below acceptable levels
Consider market conditions: ADR strategies may perform differently in trending vs. ranging markets
Use appropriate timeframes: This indicator is optimized for daily analysis of intraday movements
ملاحظات الأخبار
updated documentationملاحظات الأخبار
added price on tp and slملاحظات الأخبار
updated show pricesملاحظات الأخبار
fixed data checks for todayملاحظات الأخبار
added alerts on level touch. apply alert to entire watchlist on tradingview premiumملاحظات الأخبار
added line labels with prices ملاحظات الأخبار
added labels on levels with pricesملاحظات الأخبار
added show only statistics optionملاحظات الأخبار
added pair in table titleملاحظات الأخبار
updated text for tp1 and tp2ملاحظات الأخبار
added alerts and hook signals for discord channels ملاحظات الأخبار
added labels with pricesملاحظات الأخبار
added custom timeframeملاحظات الأخبار
fixed mtf textملاحظات الأخبار
fixed text for mtfملاحظات الأخبار
added touched level widthملاحظات الأخبار
updated for small timeframesملاحظات الأخبار
added hide table functionalityملاحظات الأخبار
added volume columnملاحظات الأخبار
fixed current candle tp and slنص برمجي محمي
تم نشر هذا النص البرمجي كمصدر مغلق. ومع ذلك، يمكنك استخدامه بحرية ودون أي قيود - تعرف على المزيد هنا.
إخلاء المسؤولية
لا يُقصد بالمعلومات والمنشورات أن تكون، أو تشكل، أي نصيحة مالية أو استثمارية أو تجارية أو أنواع أخرى من النصائح أو التوصيات المقدمة أو المعتمدة من TradingView. اقرأ المزيد في شروط الاستخدام.
نص برمجي محمي
تم نشر هذا النص البرمجي كمصدر مغلق. ومع ذلك، يمكنك استخدامه بحرية ودون أي قيود - تعرف على المزيد هنا.
إخلاء المسؤولية
لا يُقصد بالمعلومات والمنشورات أن تكون، أو تشكل، أي نصيحة مالية أو استثمارية أو تجارية أو أنواع أخرى من النصائح أو التوصيات المقدمة أو المعتمدة من TradingView. اقرأ المزيد في شروط الاستخدام.