Dynamic support and resistance intraday

Dynamic support and resistance intraday

Intraday supports and resistances plotted on your chart!  This indicator will fetch the whole intraday price values to find relevant support and resistance zones for you. “only” 10 support and resistances lines will be plotted.

These lines are reset each day to make them appearing once new support or resistance are found.

The 20 values (10 resistances and 10 supports) are returned and could be used with any automatic trading program


n = periods to find highest high and lowest low for new support / resistance comparing

tolerance = value in point to expand or narrow the old support / resistance value with the new found ones

lookback = period lookback to confirm support and resistance areas

showSupport = true or false

showResistance = true of false


Original code and idea from @Rorschack from this topic: https://www.prorealcode.com/topic/swing-lines-indicator/


original code and idea from @Rorschack in this topic:

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?

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

  1. tradingpro • 08/29/2017 #

    si vedono i puntini e basso
    come mai?

  2. Wing • 08/29/2017 #

    Looks excellent. Can’t wait to experiment with it!

  3. Toto le Heros • 08/29/2017 #

    Hi Nicolas,
    Thanks for this. Looks interresting.
    Unfortunately the display on my price graph is not readable. Looks like some S/R=0 so that the vertical scale starts from 0 (to 12 350 on DAX)… so that I cannot see anything…
    Any idea from where the issue might come ? (I tried with 25 units, 50 units, 1 000 units display… but the issue remains the same).
    Thanks again and in advance for your “support” 😉

  4. Nicolas • 08/29/2017 #

    Use vertical axis alignment only in indicators setting

  5. DonMasser • 08/29/2017 #

    Nicolas ( or anyone) would you know how to program a ‘WAIT’. In other words, in auto trading when this indicator above appears I want to wait until my DEMA has changed direction as well.
    Any idea how to write code to ‘wait’ for X or Y to happen before buying or selling. Appreciate in advance any help

  6. poldoposta • 08/29/2017 #

    Con time frame daily funzionerebbe correttamente? per multiday

  7. poldoposta • 08/29/2017 #

    con tf daily funzionerebbe per Mday???

    • Nicolas • 08/29/2017 #

      Questo indicatore è stato progettato solo per i dati intraday, ma potrebbe essere adattato ad altre unità di tempo maggiori o uguali a Giornaliero. Se necessario, si prega di creare un argomento nel forum per fare questa richiesta.

  8. MrCrous • 354 days ago #


    Dans le code ci dessus, je ne comprends pas ce que fait la ligne : linear = (resistance[1] + linear) / 2
    Ni celle de la condition : newlineass = (newlineas[i] + newlineas)/2
    Auriez vous quelques explications s’il vous plait ?


    Within the above code, what does the lines :
    -linear = (resistance[1] + linear) / 2
    – newlineass = (newlineas[i] + newlineas)/2

    Do, please?

    Thank you,

    • Nicolas • 354 days ago #

      J’ai déjà répondu à cette question quelque part sur le forum. Il faudrait chercher un topic sur le sujet de cet indicateur. Désolé je ne peux pas pour le moment

Register or


avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar

+8 more likes

Related users ' posts
Maxime Baudin Very useful! Thanks Mat, and Happy New Year
Bhanu Pratap Great Work Sir, Hats Off.
Om Hello, thanks for sharing! Getting a message that Variable P is undefined?
Nicolas Merci d'ouvrir un nouveau sujet sur le forum des indicateurs, on verra ce qu'on peut faire p...
sachinssmp required above mt4 indicators & mt4 template plz
Nicolas we do not provide mt4 indicators on our website, you can download and use the above code on ...
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...
umebon Tnx for sharing!! Can someone help me how i can call for the mydayhigh and mydaylow for to u...
LucioleLucide Clean view, thanks for sharing
dertopen hi where i can found the window for candle configuration?
8 months ago
atlante sigue sin funcionar puedes corregir el codigo gracias es que no se ve nada se queda en negro...
Thomas Como? no intiendo. Can you write in english . It works! Download the itf file.
Thomas New Version comin soon...
Vonasi Change line 76 to if opendayofweek opendayofweek[1] and opendayofweek 0 then if ...
Vonasi I just noticed that the above post makes no sense as the symbols have been removed. Here in ...
matthieuatd Hello is it possible to add the m15? Thank you
Vonasi It is possible but I will need to reread the code and remind myself how it works as I coded ...
Giogio hello dear Vonasi, thank you for your indicator, can I ask you for some help in order to let...
dario ti Thank you!
Razz Hello Vonasi super indicator! is it possible to extend the indicator by the time scales M10 ...
Razz Hello Vonasi I found out myself how I can change it. Thanks again for the indicator
Balmora74 Thanks for this code but there is 4 different versions and i don't know wich is the good one ?
Vonasi I don't understand. There is only one ITF file here not four. Download and import it. You mi...
Balmora74 Ok i understand now... I make a confusion with a other code... Thanks Vonasi.
Nicolas That's not possible because the code uses ZigZag instruction from the platform which is not ...
MrMUCKIE Thanks Nicolas. Do you have any idea of how I could generate support/resistance figures for ...
Nicolas Try fractals, swing high/low points, donchian channel, ..
Lafras very late to identify signal
nader003 Hi .. how can we get this indicator for MT4 platform
Nicolas You can ask for private custom coding to our programming services: https://www.prorealcode.c...
rrenaud_ig Great work ! My only concern is about risk management. Your results are based on 10k. Max lo...
Tony87 can we have a update on this one please?
Nicolas Discussions with many other versions and improvements can be found here: https://www.proreal...
Vonasi There is another version of this indicator that can plot the same lines but onto an indicato...
Martin35 Hello Vonasi, do you think it is possible with PRT to code with the same principle as on thi...
abhay I am getting a shading between the lines, how can I avoid that. I just want to see lines as ...
Vonasi Delete the 'Color Zone' in the indicator settings window.
Nicolas Try to restrain to trading hours when Volumes are present (customized trading hours: righ cl...
Choliver Bonsoir Nicolas, Merci pour cet indicateur. Même s'il n'y a officiellement pas de volume s...
Steffen Schmauch hello Nicolas, can I change the indicator that I only get the time of 8-9 clock displayed? a...
bertrandpinoy je constate que de plus en + de trader utilise des zones de prix pour leur positions. elles ...
Nicolas Pas à ma connaissance, mais on pourrait le coder, merci de formuler une demande dans le forum.