OPEN-SOURCE SCRIPT
stelaraX - Supply & Demand Zones

stelaraX – Supply & Demand Zones
stelaraX – Supply & Demand Zones is a price action indicator designed to automatically draw supply and demand zones based on pivot structure and candle confirmation. The script highlights potential institutional reaction areas and extends zones forward for easy planning and level-based analysis.
For advanced AI-based chart analysis and automated zone interpretation, visit stelarax.com
Core logic
The indicator detects zones using pivot logic with a user-defined lookback period.
Supply zones are created when:
* a pivot high is confirmed
* the candle at the pivot reference point is bearish (close below open)
Demand zones are created when:
* a pivot low is confirmed
* the candle at the pivot reference point is bullish (close above open)
Zone boundaries are defined using the pivot candle range:
* supply zone uses the pivot high as the top and the candle body high as the bottom
* demand zone uses the pivot low as the bottom and the candle body low as the top
Visualization
The script draws zones directly on the chart using extended boxes:
* supply zones are displayed in red tones
* demand zones are displayed in green tones
Each zone is extended forward by a configurable number of bars to keep the level visible for future price interaction. Zone colors and border styles are fully customizable.
The indicator maintains a clean chart by limiting the total number of active zones for both supply and demand.
Use case
This indicator is intended for:
* identifying key supply and demand reaction zones
* level-based trading and confluence analysis
* planning entries and exits around structural areas
* mapping potential reversal and continuation locations
* multi-timeframe zone tracking
For a fully automated AI-driven chart analysis solution, additional tools and insights are available at stelarax.com
Disclaimer
This indicator is provided for educational and technical analysis purposes only and does not constitute financial advice or trading recommendations. All trading decisions and risk management remain the responsibility of the user.
stelaraX – Supply & Demand Zones is a price action indicator designed to automatically draw supply and demand zones based on pivot structure and candle confirmation. The script highlights potential institutional reaction areas and extends zones forward for easy planning and level-based analysis.
For advanced AI-based chart analysis and automated zone interpretation, visit stelarax.com
Core logic
The indicator detects zones using pivot logic with a user-defined lookback period.
Supply zones are created when:
* a pivot high is confirmed
* the candle at the pivot reference point is bearish (close below open)
Demand zones are created when:
* a pivot low is confirmed
* the candle at the pivot reference point is bullish (close above open)
Zone boundaries are defined using the pivot candle range:
* supply zone uses the pivot high as the top and the candle body high as the bottom
* demand zone uses the pivot low as the bottom and the candle body low as the top
Visualization
The script draws zones directly on the chart using extended boxes:
* supply zones are displayed in red tones
* demand zones are displayed in green tones
Each zone is extended forward by a configurable number of bars to keep the level visible for future price interaction. Zone colors and border styles are fully customizable.
The indicator maintains a clean chart by limiting the total number of active zones for both supply and demand.
Use case
This indicator is intended for:
* identifying key supply and demand reaction zones
* level-based trading and confluence analysis
* planning entries and exits around structural areas
* mapping potential reversal and continuation locations
* multi-timeframe zone tracking
For a fully automated AI-driven chart analysis solution, additional tools and insights are available at stelarax.com
Disclaimer
This indicator is provided for educational and technical analysis purposes only and does not constitute financial advice or trading recommendations. All trading decisions and risk management remain the responsibility of the user.
نص برمجي مفتوح المصدر
بروح TradingView الحقيقية، قام مبتكر هذا النص البرمجي بجعله مفتوح المصدر، بحيث يمكن للمتداولين مراجعة وظائفه والتحقق منها. شكرا للمؤلف! بينما يمكنك استخدامه مجانًا، تذكر أن إعادة نشر الكود يخضع لقواعد الموقع الخاصة بنا.
إخلاء المسؤولية
لا يُقصد بالمعلومات والمنشورات أن تكون، أو تشكل، أي نصيحة مالية أو استثمارية أو تجارية أو أنواع أخرى من النصائح أو التوصيات المقدمة أو المعتمدة من TradingView. اقرأ المزيد في شروط الاستخدام.
نص برمجي مفتوح المصدر
بروح TradingView الحقيقية، قام مبتكر هذا النص البرمجي بجعله مفتوح المصدر، بحيث يمكن للمتداولين مراجعة وظائفه والتحقق منها. شكرا للمؤلف! بينما يمكنك استخدامه مجانًا، تذكر أن إعادة نشر الكود يخضع لقواعد الموقع الخاصة بنا.
إخلاء المسؤولية
لا يُقصد بالمعلومات والمنشورات أن تكون، أو تشكل، أي نصيحة مالية أو استثمارية أو تجارية أو أنواع أخرى من النصائح أو التوصيات المقدمة أو المعتمدة من TradingView. اقرأ المزيد في شروط الاستخدام.