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 • 171 days ago #

    Con time frame daily funzionerebbe correttamente? per multiday

  7. poldoposta • 171 days ago #

    con tf daily funzionerebbe per Mday???

    • Nicolas • 171 days ago #

      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.

Register or


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

+8 more likes

Related users ' posts
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...
Nicolas Bene, perché no, trovi che sia affidabile a lungo termine?
Billy Ray Valentine Non saprei, che ne dici di provare?
Steffen Schmauch hello Nicolas, can I change the indicator that I only get the time of 8-9 clock displayed? a...
rama This is one of best indicator to trade any time frame
Madrosat Is this indicator as it is , useful in strategy automatic
Nicolas Yes, that's how it goes when using loops..
JosephFelix Hi, Could I please have help with adding these indicators 'on price'? Every indicator that I...
Nicolas Just add it on price by clicking the wrench on the left upper side of the price chart.
Gianluca WOW! i was looking for something like this! Thank you!
Gianluca ok i fixed it i hope is ok like this: //TAC trader zone 10.2 | indicator //01.01.2018 //R...
TAC Bolsa Hello try this new version or view the blog with the new indicators .. https://www.t...
TAC Bolsa Sorry, TAC Trader Zone V2 https://www.tiburonesdealetacorta.com/2018/11/indicador-tac-tr...
FULVIO09 Attualmente non c'è sufficiente volatilità : la condizione "C0 = AverageTrueRange[1500](Clos...
vlongobardo67 Ma io intendevo in backtest ! Scusa non l’ho menzionato.
ciniselloftse salve fulvio .il trading sistem e sempre profittevole?
Leo Hi Luminario, b0 is a condition that the curve SMA1 is below SMA2. As long as this conditi...
nwesterhuijs Last statements for closure seem incorrect in my opinion: - "IF (Barindex-TRADEINDEX)>11...
Leo This is a 1 min strategy where the markets has been very oversell / overbought and this code...
Real Pro working now, sorry for the bother
David29 BONJOUR, Félicitations pour cet indicateur. Avez-vous une idée de comment créer une strat...
Nicolas Je pense que ça a déjà été codé quelque part sur le forum. Dans la négative merci d'ouvrir u...
Vonasi An interesting idea that was easily turned into a strategy on a shorter time frame that appe...
Stenozar Hi Vonasi, is it possible for you to share your code here? thanks in advance
Vonasi Sorry Stenozar. I have only really spent an hour or so on this strategy so far and it is far...
Nicolas Sorry again, doing my best to fix this problem..
Gianluca Sorry but the 2° code that you posted have some problem it doesn't work
Leo I have to check
supertiti Podemos añadir este codigo para tener las flechas : /////////////////////////////////////...
DaxRider Thank you Supertiti for your contribution best wishes
1 year ago
ALE P01 , it’s the first patner of the indicator, I hope to add others in future.
ALE We can discuss about the strategy here: https://www.prorealcode.com/topic/scalping-indicator/
Yannick Hello There is a mistake in trailing stop code, I think that this should fix the problem s...
Paul About the trailing-stop the way it's coded. That works for backtesting only, just look at th...
Jonny sorry paul, but system says that is not possible to put many stop order combined...what have...
Nicolas Not possible to change the thickness. You can add text with DRAWTEXT instruction, you'll fin...
financier Hi, Nicholas I find your sweetspot indicator very handy for identifying key areas in a range...
Nicolas Sure,you can. Just add different variables in the loop and test them at each iteration if th...