DerPat

Average True Range Support and Resistance Bands

Category: Indicators By: DerPat Created: October 3, 2016, 7:36 AM
October 3, 2016, 7:36 AM
Indicators
5 Comments
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:

BP = (Dhigh(1)+Dlow(1)+Dclose(1))/3

n = 20
Move = AverageTrueRange[n](BP)
far = 2

A = BP-Move
A2 = BP-(Move*far)
B = BP+Move
B2 = BP+(Move*far)

RETURN A As "N-", A2 As "2N-", B As "N+", B2 As "2N+", BP As "BalancePoint"

 

Download
Filename: PFL_True_Range_SR_week.itf
Downloads: 164
Download
Filename: PFL_True_Range_SR.itf
Downloads: 348
DerPat
DerPat Junior
This author is like an anonymous function, present but not directly identifiable. More details on this code architect as soon as they exit 'incognito' mode.
Author’s Profile

Comments

gabri
9 years ago
#

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]

 

DerPat
10 years ago
#

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?

zilliq
10 years ago
#

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

CharlieWaffles
10 years ago
#

Nice Job

Nicolas
10 years ago
#

Nice idea and accurate, thanks for sharing! 

ProRealCode ProRealCode
Loading...