Rally Base Drop SND Indicator

Rally Base Drop SND Indicator

1. Introduction

Supply and Demand (SND) zone analysis is a technique widely used in institutional trading and by price action traders. These zones represent levels where strong buying or selling activity has created imbalances that could be respected again in the future. Correctly identifying them can offer high-probability trading opportunities.

The “Rally Base Drop SND” indicator was developed (LuxAlgo) to automate the detection of one of the classic SND patterns: the “Rally – Base – Drop” and its inverse “Drop – Base – Rally”. This script makes it easier to visually identify these key zones directly on the chart.

2. Indicator Foundation

The “Rally – Base – Drop” pattern consists of three phases:

  • Rally: A strong upward move composed of at least two consecutive bullish candles.

  • Base: A zone of consolidation or pause, usually with small-bodied candles or indecisive movement.

  • Drop: A strong downward move, also made of at least two consecutive bearish candles.

Conversely, the “Drop – Base – Rally” pattern signals a potential bullish reversal.

In the code, these phases are defined as:

  • A bullish candle is when the close is higher than the open.

  • A sequence of two bullish candles defines a Rally.

  • A sequence of two bearish candles defines a Drop.

  • When neither Rally nor Drop is detected, it’s considered a Base.

3. How the Code Works

The core of the indicator is the detection of pivot zones that match the SND structure.

a. SND Zone Detection

The script continuously scans the chart for sequences that match either Rally → Base → Drop or Drop → Base → Rally. When a valid pattern is found, the price range (highest high and lowest low) within the base is calculated and a rectangle is drawn to visually highlight it.

b. Visualization

  • Supply zones (Rally-Base-Drop) are shown with semi-transparent red rectangles.

  • Demand zones (Drop-Base-Rally) are shown with semi-transparent green rectangles.

Additionally, the script draws a horizontal line from the key pivot level until the zone is invalidated by a price breakout. Once broken, the line is truncated to show that the zone is no longer valid.

4. Indicator Settings

The indicator includes a single customizable parameter:

  • len (default = 2): number of bars considered for identifying pivot highs/lows. Increasing this value reduces the indicator’s sensitivity, focusing on more significant moves.

This setting can be adjusted depending on the timeframe and the volatility of the asset being analyzed.

5. Practical Applications

This indicator is especially useful for:

  • Marking potential reversal zones: where price could react if it returns.

  • Identifying key entry/exit levels: by validating or breaking through zones.

  • Confirming market structure: by highlighting areas that align with dynamic support/resistance.

It can be used on all assets and timeframes, though higher timeframes like H1, H4, or Daily are recommended for stronger zones.

6. Source Code

Below is the full ProBuilder code, ready to be used in your ProRealTime platform:

Share this

Risk disclosure:

No information on this site is investment advice or a solicitation to buy or sell any financial instrument. Past performance is not indicative of future results. Trading may expose you to risk of loss greater than your deposits and is only suitable for experienced investors who have sufficient financial means to bear such risk.

ProRealTime ITF files and other attachments : How to import ITF files into ProRealTime platform?

PRC is also on YouTube, subscribe to our channel for exclusive content and tutorials

avatar
Register or

Likes

avatar
Related users ' posts
Grantx When I add this code, the indicator appears in the panel below price. How do I get it to dis...
Patrik72 Hello, thank you very much for the great indicator. One question, is it possible just have l...
datageek is it possible to add Mid pivot points (midR1 and MidS1)?

Top