Average True Range Support and Resistance Bands

Average True Range Support and Resistance Bands

The code takes the pivot line and adds the average daily ranges of the previous days to create support and resistance bands. Lines are plotted with ATR*1 and ATR*2.

How to use and read:

  • Price tends not to break ATR*2 level
  • Price tends to retrace on ATR*1 levels
  • Balance Point = Pivot Line
  • Is more reliable to me than pivot levels
  • I use it for intraday target and stop levels and sometimes for entries

CODE:

 

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

  1. Nicolas • 10/03/2016 #

    Nice idea and accurate, thanks for sharing! 

  2. CharlieWaffles • 10/03/2016 #

    Nice Job

  3. zilliq • 10/03/2016 #

    Be careful,
    It works only if you are in daily timeframe, and on your graphic you are on hour timeframe 😉
    (BP is on daily timeframe and your average on hour timeframe)
    If you want to have this S/R on hour timeframe you should multiply by a coef 
    Have a nice day
    Zilliq

  4. DerPat • 10/03/2016 #

    I guess you are right, like always. If you change n to 24 you have at least the hours of a day, even if it is moving and the BP not. The reason it regularly fits to the current market is it’s adaptability. If you plot Pivot lines, to which the market usually reacts intraday, they are always somewhere inbetween ATR and ATR*2 and they are regularly invalidated. ATR*2 is only in strong trends invalidated. Just yesterday Gold went to ATR*2 retraced there and waited for a new day and lower resistance levels to take out my stop.
    Something I did not mention of what you can read, as I am still not sure about. If market starts above BP, you have to consider top ATR*2 and bottom ATR as major resistance and support. If it starts below BP, you can consider ATR*2 bottom and ATR top as major support and resistance. Can someone verify or invalidate this theory?

  5. gabri • 10/03/2016 #

    DerPat,
    you can also change line1 to read as follow to adapt this script to hourly timeframes (and lower)
    BP = (high[1]+low[1]+close[1])/3
    or just use
    bp=typicalprice[1]
     

avatar
Register or

Likes

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

+1 more likes

Related users ' posts
Nicolas
11 months ago
Maxime Baudin Well done Nicolas, creative!
Stenozar Hi Nicolas, please can you explain how to read/use this indicator? thanks!
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)
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?
Nicolas It may be possible that the variables are still present in the code while they are also in t...
luxrun I found this solution, thanks
luxrun thanks Nicolas
swapping fib1236 = (hiday-lowday)*1.236+lowday DrawSegment(startbar,fib1236,barindex,fib1236) colou...
swapping Oups ! Nicolas il y a un problème avec l'insertion de code en utilisant le bouton [Add PRT ...
swapping fib1236 = (hiday-lowday)*1.236+lowday DrawSegment(startbar,fib1236,barindex,fib1236) colour...
mathiasKN Steffen Schmauch • 12/11/2018 # hello Nicolas, can I change the indicator that I only get t...
Nicolas Please open a new topic in the indicator forum and explain there your query, thank you.
upupandaway This seems like a very useful indicator. However, it does not seem to open properly in the c...
mscharstrom Hi @robertogozzi, I really love this indicator. However, I'd like to tinker with it to fit ...
Ahimsa Hi Roberto I cannot thank you enough for writing this code. It could help me more than you ...
Nicolas With PRT v11, you have to click on "price" at the upper left side of the price chart.
GertLjung Ok, thanks
marinober Gentile Nicolas, l'indicatore mi da errore : ciclo infinito o con troppe iterazioni, modific...
Nicolas Se la stai usando in un piccolo lasso di tempo, assicurati di avere unità sufficienti visual...
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 !!!
roos Hi Nicolas, another really helpful bit of code, thank you! Can I ask how you might amend so ...
Denis Good evening Nicolas, could you tell me where thae arrows on the chart come from ? I don't s...
Nicolas there is no arrow in this indicator.
David Thanks for the explanation Nicolas.
freecat1899 Hello, I wanted to create a percent ADR based on this indicator, so I wrote this code that I...
revstrat At first glance, I see this mistake. You shouldn't average the highs and the lows. You shoul...

Top