1-2-3 Pivots Support and Resistance Lines

1-2-3 Pivots Support and Resistance Lines

This indicator draws support and resistance lines that are an extension of the last three swing highs and last three swing lows (or fractal points). It is an updated version of my indicator that can be found here:


Whenever a new pivot point is formed a new support or resistance line starts to be drawn that lines up with previous pivot points.

In this new version the last three swing highs and last three swing lows are used. By ticking or unticking the relevant box various support and resistance lines can be displayed or removed as follows:

  • Pivots12 – Lines that are a continuation of a line connecting the last two high and low pivots.
  • Pivots13 – Lines that are a continuation of a line connecting the last and the second to last high and low pivots.
  • Pivots23 – Lines that are a continuation of a line connecting the second to last and third to last high and low pivots.
  • Avg12 – Lines that are an average of the Pivots12 and Pivots13 lines.
  • Avg123 – Lines that are an average of the Pivots12, Pivots13 and Pivots23 lines.
  • Avg12Mid – A line that is mid way between the Avg12 support and resistance lines.
  • Avg123Mid – A line that is mid way between the Avg123 support and resistance lines.
  • Connected – All  lines are drawn connected when a new pivot high or pivot low is formed

The pivot/fractals definition can be adjusted by changing the number of bars before and the number of bars after the high or low. So for example you can have a new pivot whenever a high has one candle lower either side of it or when it has two candles lower either side of it.

This indicator can be used to easily see if price is either bouncing off of support and resistance or if it is breaking out from support or resistance.

Download and import the ITF file to get full functionality.

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. Vonasi • 01/19/2019 #

    There is another version of this indicator that can plot the same lines but onto an indicator rather than on to price. It can be found here:

  2. Martin35 • 01/19/2019 #

    Hello Vonasi, do you think it is possible with PRT to code with the same principle as on this indicator of :

    – Bullish and bearish triangles
    – Ascending and descending bees
    – Bullish and downside breakouts

    I do not know if technically, the platform could allow this kind of code.

Register or


avatar avatar avatar
Related users ' posts
MAKSIDE Nice work ! one question, how your will take position in a auto strategy with the differen...
Vonasi It is not possible to detect when a drawn ray line has been crossed. It would require differ...
MAKSIDE yes I already tried something like that but it was inconclusive thx for sharing
IV Mcm I don't speak English and the translation is not clear. Do you have a different turn of ...
IV Mcm stonk ?
samsampop Thanks very much for sharing, look forward to testing this idea out.
fazel53 How do i attach this indicator to my mt5 platform?
Nicolas You can't! All indicators here are for ProRealTime trading platform: https://www.prorealtime...
Nicolas Oui, il peut ĂȘtre appliquĂ© sur toutes les unitĂ©s de temps et fonctionne sur prorealtime v11.
superprof salut merci pour ton indicateur. Pour bien comprendre , si suis acheteur Ă  quelle comment j...
Nicolas A discrétion, bon courage dans ton apprentissage du trading.
IV Mcm
4 months ago
Demon Bonjour, je n'ai pas téléchargé le code mais je l'ai lu et comme je ne comprenais pas la con...
Vivien René Tout a fait demon, cela depend de ce que tu recherches personnellement je ne souhaite enlev...
clody Good morning Rene'. Thanks a lot d=for the 3 screener you made regarding Breack Out (very us...
Oxxoz Re bonjour Vivien, Il me smeble que 3 mois, c'est 60 séances. Cordialement,
Vinks_o_7 thanks ...and It can be used on a monthly and weekly basis by changing just the duration in ...
ncattin76 Bonjour Vivien, peux tu me dire si ton screener est utilisable dans toutes les UT ?
clody Thanks a lot Vivien ....good job is really what I'm searching
Randy33 Very very nice! How can i change the price in the code? Like to screen only smal caps (Price...
Nicolas Le paramĂštre showcl doit ĂȘtre en true (Ă©gal Ă  1 )
Lednora Ah oui en effet c’est magique!j’étais restĂ© bloquĂ© sur la ligne 96^^. Merci beaucoup nicolas...
samsampop Merci Nicolas, c'est superb!
toendidi Hi Vonasi, thankx for the indicator I find it very usefel. I am trying to study the breakot...
Canis Majoris Hi , Helpful indicator ...
Maxime Csls Bonjour Vonasi, Bravo pour ton travail ! Est-il possible de créer un screener quand le prix ...
Bhanu Pratap Great Work Sir, Hats Off.
bolsatonimora2 Hi Roberto, It is possible to modify this indicator which it marks the supports and resist...
robertogozzi What do you mean by "very high volume"? What do you want to be printed exactly?
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...
luxrun Vonasi, is it possible to have a screenshot of an index chart (eg djia) and below the breako...
Vonasi I can't add any images here now that the library post has been listed. Perhaps you could sta...
Vinks_o_7 Thanks again Vonasi !
Vonasi In the all the DRAWTEXT lines of code change the 10 to a larger number.
Lotech123 Vonasi. Thank you for a very prompt response.
Lotech123 Following on from your earlier advice, I changed the ‘drawtext’ command to various sizes bef...
Vonasi Yes that was the issue. I have posted an updated ITF file here: https://www.prorealcode.com/...
crolakstrading @vonasi Thank you for fixing the issue! This is a great indicator.
gregoire good evening vonasi , I had made the request to create this indicator a few years ago and I ...