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
IV Mcm I don't speak English and the translation is not clear. Do you have a different turn of ...
IV Mcm stonk ?
avatar
Anonymous Thanks very much for sharing, look forward to testing this idea out.
Noobywan (My apologies for unformatted code, the formatting only works in forum or library posts not ...
Noobywan Hi FXTT, no problem for requests (as long as no one requests me singing), just usually it’s ...
JC_Bywan Bug fix at line 38, should be: if changebarre or (opentime[1]=start) then (same as in ...
Nicolas Oui le code est correct et il fonctionne, j'ai de bons résultats sur la liste NASDAQ par exe...
pincherman Bonjour :-) J'ai coller le script dans prorealtime pour jouer avec le supertrend et j'ai un...
Nicolas Vous l'avez sans doute collé au mauvais endroit, dans l'éditeur de code pour les stratégies,...
joguemon Buenas, he instalado el screener pero no me aparecen los números que indicas...tengo que mon...
enriquem Hola, No, los numeros no aparecen, Proscreener no permite rotular, Lo que devuelve el sc...
PeytoLake Hi Enriquem, How do I change the timeframe from 'Daily' to "5 min"? Thank you.
robertogozzi I suggest that you open a new topic in the ProScreener support forum. Thank you.
massimo.g. questo screener si può usare anche sul mercato Azinario ?
robertogozzi Like my screener https://www.prorealcode.com/prorealtime-market-screeners/abcd-pattern-scree...
aldtrading Thanks for your work. I'm using V11 and nothing is drawn on the chart, I believe this is ...
robertogozzi It works on v10.3, v11 and v12. You are likely to have added it BELOW your chart (like RSI),...
Bard Very interesting approach Vonasi! I'm getting a 404 error when trying to download though?
Vonasi I just tested and I was able to download with no error.
Psari Hi Vonasi, I am a newbie and was wondering whether you could possibly help me with this pro...
Wolf I don't know why the indicator does not work for me. It gives me an error about RETURN... ...
sergibilbo Great job thanks!!!
druby I was glancing through the code and noticed that the variable name, Middle' has been used. I...
robert123 hi there, how do you get the images of the knights etc into your code....and is there anywhe...
swapping hello robert123, on this site -> https://fr.piliapp.com/symbol/
datageek How do I change the thickness of the line or change it too dashed lines? Kind regards
lkiklkik NE fonctionne pas ( ou plus ... )
Nicolas il faut modifier toutes les références à top par itop et bottom par ibottom. Ces mots étant ...
Juanjo Hola?. Exactamente cuál es su utilización?.
bolsatrilera Hola Juanjo, su principio esparecido a las bandas de Bollinguer.Las lineas de las bandas son...
Vonasi The indicator code can easily be adapted for use as a filter in strategies as well. For exam...
AVT Tested today in manual DAX trading (transcripted to MT and changed look into aka oszillator)...
Vonasi I think that short time frame charts will be too noisy for this indicator. One blue bar real...
Vonasi I forgot to mention in the description that Sunday pivot lines are ignored and Monday's pivo...
AVT Like that, simple and clear!
Vonasi Thanks AVT. I like simple - some people would say that I do simple very well! Sometimes you ...
Nicolas Please open a new forum topic, and respect the posting rules. Add a precise description of w...
FXTT ok will do, apologies, as I said I am new here. many thanks
Noobywan Version v2 including requested additions: https://www.prorealcode.com/prorealtime-indicators...
Trading_En_El_Ibex35 Para calcular el punto pivote y los niveles de soporte y resistencia para operar durante la ...
supertiti Hola mis disculpas, creia que tu eres Jose Antonio Madrigal ! gracias por las explicaci...
Trading_En_El_Ibex35 espero que las explicaciones te hayan sido de ayuda saludos
Paul Thanks for posting. I was currently searching how to improve day-trading based on support an...
Jessar Könntest du im Forum etwas öffnen und später darüber zu sprechen?
arahussein Hi All, I am new to trading and i find this indicator very logicail! Hence my (dumb?) quest...
juju333 Merci Nicolas, j'utilisais avec bonheur ce code dans la 10.3, il ne tourne plus dans la v11....
Nicolas Remplacer les lignes 11 et par 12 avec: yearlyHigh = Highest[max(1,BarIndex - lastYearBarI...
juju333 merci !!!
rajiwas Hello Nicolas, With Daily Pivot, it easy for me to show current day pivot e.g. if Date = T...
Nicolas You'll find many other pivots points indicators in the library, just use the search box of t...
rajiwas Thanks for the suggestion.
Doctrading Thanks, man !
rajiwas How is it possible to add currentWeekHigh and currentWeekLow, currentWeekOpen and currentWee...
Takeshi Totally don't match the PRT basic pivots on weekly

Top