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
Related users ' posts
NicoGB67 Hola Iván, en primer lugar agradecerte el trabajo que haces, y comentarte algo sobre este in...
okeus ok fatto avevi ragione, grazie
DLVx Hola Iván, unas de las limitaciones que identificas es la combinación del OBB con otros indi...
Iván
7 months ago
Madrosat Bonjour Ivan je ne sais pas si je dois écrire en Français ,anglais ,espagnol ,il y a les 3 ...
Iván Bonjour, la vérité est que ce n'est pas aussi facile qu'il n'y paraît.... Un indicateur peut...
Madrosat Merci Ivan j'espère que ce jour viendra bientôt , je sais que ce n'est pas facile car les in...
Iván
8 months ago
mortezaali14 Bonjour, qu'est-ce qu'un fichier itf ? Comment ça marche ?
mortezaali14 Hola, ¿qué es un archivo itf? ¿Cómo funciona?
Iván Hola javier gracias! es importante realizar buenos backtest antes de lanzarse al mercado y ...
achel I have an error with "fillcolor" - How to solve this? / J'ai une erreur avec "fillcolor" - C...
Iván Hi! This is because you are not with V12. Just delete fillcolor
Patriot1972 Ciao Ivan, avevo bisogno di chiarimenti sul funzionamento del tuo indicatore: cosa segnala q...
elcortijoverde Gracias Iván,...sigo tus videos en Youtube. Ya estoy con la V12 y se descarga, pero algo est...
elcortijoverde Bueno, ya aparecen las velas, pero ahora, cada fin de vela aparece un nuevo pronóstico y no ...
Roger Gracias por compartir, pero no tengo ninguna predicción. @Ivan @elcortijoverde ¿qué modifica...
DeathMetal C'est un modèle assez rare, essayez-le sur un petit laps de temps, par exemple 5 minutes et ...
BEBERD serait-il possible d avoir le code pour en daily et weekly ? merci bien
DeathMetal Use the same code, it's universal
Razz Hello, thank you for your indicator. Can you please tell me how I can change the text size,...
Iván Hi! you have all information about it here (https://www.prorealcode.com/documentation/drawte...
Miro Mis felicitaciones por este indicador. Funciona muy bien en el corto plazo. Gracias gracias ...
marcov66 Holá Ivan! Complimenti per l´indicatore! Secondo te con la nuova V12 avendo ora a disposizio...
Iván Grazie! In realtà, anche se gli indicatori di cui parli sono presenti nella nuova versione, ...
marcov66 Infatti, il Volume profile, il POC, le VA il CVD sono finalmente disponibili su PRT V12. Sec...
Iván Hi, Sorry, but what do you mean?
luiskohnen Hola, queria saber si el indicador repinta, porque a mi me parecio que si. Saludos y gracias...
Diamant Bonsoir, L'un d'entre vous peut-il me donner les définissions de LL-HH-LH et HL. Merci d'av...
Regisnew Bonjour Ivan serait il possible de proposer un screener pour détecter les zones de support v...
bembel242 Hello Ivan ! A belated HNY ! I know late ! Quick question on theis great indicator plse. I u...
gp38super Wow! This is GOLD! Great job!
lee Thank you!
Iván Hi We could find stocks with sweep on: //PRC_Sweep Institucional //version = 0 //28.0...
inverse Like the way you think Ivan ... :)
ar Bonjour Ivan et merci pour ton partage, Est-il possible d'avoir ce code en ITF
philippe59139 Bravo super travail
xpe74 top job ......
xpe74 Hello, cet indicateur a il fait l'objet d'une conversion en stratégie de trading ?? does thi...
Stefano1234 there is an error: Define the variable: prd, showBreak, showPattern, showPvts
romanelli4 molto interessante e grazie ma come faccio a trasformarlo in trading system? grazie per l...
oyinloyea Thanks for the indicator
YvesRobert Hi smp, how should I configure this indicator because everything is at zero -> High, Clos...
smp Hi, this is an end of day pivots indicator, so you need to find the end of day pivot info; t...
YvesRobert Thank you smp.
smp I also have an End Of Day (EOD) cash pivot indicator for use on cash markets; this indicator...
cdc.andersson Hej! Jag försöker lära mig att koda PRT. Jag vill testa en strategi med RSI-värde, ATR-värde...
Swingforfortune Du kan väl jämföra om open > close (röd) eller open < close (grön)

Top