OPEN-SOURCE SCRIPT
Price Boundaries

The Price Boundaries indicator plots two dynamic levels above and below the current market price. These levels help traders visualize a custom price band around the instrument, assisting with intraday bias, breakout zones, stop-loss planning, or scalp targets.
You can set the distance between the current price and each boundary using a user-defined input. For example, if the price is 6250 and the distance is set to 25, the indicator will automatically draw lines at 6275 (upper boundary) and 6225 (lower boundary). These levels update every candle based on the closing price.
This tool is useful for:
Marking expected movement ranges
Planning mean-reversion or breakout setups
Creating consistent distance-based zones
Visual reference for volatility compression or expansion
The indicator also optionally shades the area between the boundaries to make the zone easier to spot on the chart.
You can set the distance between the current price and each boundary using a user-defined input. For example, if the price is 6250 and the distance is set to 25, the indicator will automatically draw lines at 6275 (upper boundary) and 6225 (lower boundary). These levels update every candle based on the closing price.
This tool is useful for:
Marking expected movement ranges
Planning mean-reversion or breakout setups
Creating consistent distance-based zones
Visual reference for volatility compression or expansion
The indicator also optionally shades the area between the boundaries to make the zone easier to spot on the chart.
نص برمجي مفتوح المصدر
بروح TradingView الحقيقية، قام مبتكر هذا النص البرمجي بجعله مفتوح المصدر، بحيث يمكن للمتداولين مراجعة وظائفه والتحقق منها. شكرا للمؤلف! بينما يمكنك استخدامه مجانًا، تذكر أن إعادة نشر الكود يخضع لقواعد الموقع الخاصة بنا.
إخلاء المسؤولية
لا يُقصد بالمعلومات والمنشورات أن تكون، أو تشكل، أي نصيحة مالية أو استثمارية أو تجارية أو أنواع أخرى من النصائح أو التوصيات المقدمة أو المعتمدة من TradingView. اقرأ المزيد في شروط الاستخدام.
نص برمجي مفتوح المصدر
بروح TradingView الحقيقية، قام مبتكر هذا النص البرمجي بجعله مفتوح المصدر، بحيث يمكن للمتداولين مراجعة وظائفه والتحقق منها. شكرا للمؤلف! بينما يمكنك استخدامه مجانًا، تذكر أن إعادة نشر الكود يخضع لقواعد الموقع الخاصة بنا.
إخلاء المسؤولية
لا يُقصد بالمعلومات والمنشورات أن تكون، أو تشكل، أي نصيحة مالية أو استثمارية أو تجارية أو أنواع أخرى من النصائح أو التوصيات المقدمة أو المعتمدة من TradingView. اقرأ المزيد في شروط الاستخدام.