OPEN-SOURCE SCRIPT
ADR Ratio Table (ADR 1/ ADR 2)

ADR Ratio Table is a market condition filter designed to compare short-term volatility with the broader market environment.
The indicator calculates two Average Daily Range (ADR) values using user-defined periods (for example, 5-day ADR and 21-day ADR) and displays their ratio in a table.
ADR Ratio = Short-Term ADR / Long-Term ADR
This ratio helps identify volatility regimes:
A value above 1.0 indicates that recent volatility is higher than the market’s longer-term average, suggesting expansion conditions.
A value below 1.0 indicates compressed volatility, where directional moves are less likely to follow through.
Its purpose is to act as a pre-trade filter, helping traders decide whether current market conditions are suitable for strategies that rely on range expansion and directional continuation.
The indicator calculates two Average Daily Range (ADR) values using user-defined periods (for example, 5-day ADR and 21-day ADR) and displays their ratio in a table.
ADR Ratio = Short-Term ADR / Long-Term ADR
This ratio helps identify volatility regimes:
A value above 1.0 indicates that recent volatility is higher than the market’s longer-term average, suggesting expansion conditions.
A value below 1.0 indicates compressed volatility, where directional moves are less likely to follow through.
Its purpose is to act as a pre-trade filter, helping traders decide whether current market conditions are suitable for strategies that rely on range expansion and directional continuation.
نص برمجي مفتوح المصدر
بروح TradingView الحقيقية، قام مبتكر هذا النص البرمجي بجعله مفتوح المصدر، بحيث يمكن للمتداولين مراجعة وظائفه والتحقق منها. شكرا للمؤلف! بينما يمكنك استخدامه مجانًا، تذكر أن إعادة نشر الكود يخضع لقواعد الموقع الخاصة بنا.
إخلاء المسؤولية
لا يُقصد بالمعلومات والمنشورات أن تكون، أو تشكل، أي نصيحة مالية أو استثمارية أو تجارية أو أنواع أخرى من النصائح أو التوصيات المقدمة أو المعتمدة من TradingView. اقرأ المزيد في شروط الاستخدام.
نص برمجي مفتوح المصدر
بروح TradingView الحقيقية، قام مبتكر هذا النص البرمجي بجعله مفتوح المصدر، بحيث يمكن للمتداولين مراجعة وظائفه والتحقق منها. شكرا للمؤلف! بينما يمكنك استخدامه مجانًا، تذكر أن إعادة نشر الكود يخضع لقواعد الموقع الخاصة بنا.
إخلاء المسؤولية
لا يُقصد بالمعلومات والمنشورات أن تكون، أو تشكل، أي نصيحة مالية أو استثمارية أو تجارية أو أنواع أخرى من النصائح أو التوصيات المقدمة أو المعتمدة من TradingView. اقرأ المزيد في شروط الاستخدام.