SuperCharting
Sign in Get started Account Open charts

SD Demand & Supply

A Pine Script indicator by smart (invite-only: the source is hidden and its author chooses who may use it).

chart SD Demand & Supply Indicator automatically identifies and displays demand and supply zones across multiple timeframes.

The indicator detects: Demand Zones: Drop–Boring–Rally (DBR) and Rally–Boring–Rally (RBR) formations Supply Zones: Rally–Boring–Drop (RBR) and Drop–Boring–Drop (DBD) formations

When a Demand Zone is detected, it plots a blue Label below the relevant boring candle. When a Supply Zone is detected, it plots a red Label above the relevant boring candle — making it easy to visualize potential reversal areas. With built-in alert functionality, you can also set alerts on your preferred symbols and timeframes to get instant notifications whenever new Demand or Supply Zones are formed.

How the Script Works? 1. The script scans the price action of three to five consecutive candles to identify potential Demand and Supply patterns based on the open, High, Low and close prices. 2. The script evaluates every candle’s price movement based on set conditions to confirm a valid demand or supply pattern. 3. For demand cases, the script recognizes specific formations such as Drop– Boring –Rally (DBR) and Rally– Boring –Rally (RBR), which indicate potential buying zones. 4. For supply cases, it identifies Rally– Boring –Drop (RBD) and Drop– Boring –Drop (DBD) structures, indicate potential selling zones. 5. When a valid Demand Zone is detected, the script plots a Blue label below the relevant Boring candle. 6. When a valid Supply Zone is found, it plots a Red label above the relevant Boring candle. 7. The script includes an alert feature that notifies users in real-time whenever a valid demand or supply pattern is formed, allowing timely action

How Users can get benefited using this Script?

1. The labels and text plotted by the script help traders visually identify potential entry and exit points. 2. When a valid Demand Zone is detected and the price revisits it, it may indicate a potential bullish reversal. 3. When a valid Supply Zone is detected and the price revisits it, it may indicate a potential bearish reversal. 4. Users can integrate this script with other indicators, fundamental data, or sentiment analysis to confirm signals and make more informed decisions. 5. Traders should use proper risk management strategies, including stop-loss orders to limit losses and targets when the trade moves in their favor.

Settings Explained

1. Boring & Legin Ratio This is the ratio between the Legin candle and the Boring candle. A default value of 2 means the Legin candle size (High–Low) is twice the size (High–Low) of the Boring candle. 2. Leg-In & Leg-Out Ratio This is the ratio of Legin candle and Legout candle. A default value 2 means the Legout candle size (High-Low) is twice the size (High-Low) of the Legin candle.

3. Leg-In & Three-Leg-Out Ratio This is the ratio of Legin candle and to the combined size of three Legout candles. A default value 2 means the overall size of the three Legout candles is twice that of the Legin candle.

4. Leg-In Body to Wick Ratio It is the ratio between the body size of a candle and its total wick length. A default value of 0.6 means that 60% of the total candle length should be the body.

Zone Selection Filters 1. All Possible Zones Displays all types of zones, including with or without Clear Area and with or without True Range (TR) vs Average True Range (ATR) criteria 2. All Zones with TR Vs ATR Shows all zones but with True Range (TR) vs Average True Range (ATR) criteria. 3. Clear Area Zone Only It will show the Zone with Clear Area and either with or without TR Vs ATR compliance Clear Area Zone – is considered when the body of the Legout candle does not overlap the Boring candle. In other words, the right side of the Boring candle area remains completely free 4. Clear Area Zone with TR vs ATR Compliance It will show the Zone with Clear Area and with TR Vs ATR compliance Note: No. 1 and 2 is suitable for Forex, and crypto market segment No. 3 and 4 is suitable for commodity and stock market segment

What is TR Vs ATR Criteria? TR (True Range) vs ATR (Average True Range) criteria is used to validate the strength of a Demand or Supply Zone and it is very important criteria. For Legin Candle (first candle of the pattern from left) — TR value should be greater than the ATR value. For Boring Candle (second candle of the pattern from left) — TR value should be smaller than the ATR value. For Legout Candle (third ,fourth & fifth candle of the pattern from left) — TR value should again be greater than the ATR value,