## Average Period Range

Here you can post and download custom indicators. PLEASE: Do not start topics unless you are posting your own indicator, they will be moved to appropriate section even if you do.

### Average Period Range

Will show Average Range of Data for last N periods.

Range Method
abs(Open-Close) or High-Low

Presentation of Results
Absolute
Relativ - as a percentage

APR.lua

Apprentice
FXCodeBase: Confirmed User

Posts: 22134
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

### Average Period Range Projections

APR Projections.lua

Apprentice
FXCodeBase: Confirmed User

Posts: 22134
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

### Re: Average Period Range

Apprentice wrote:Will show Average Range of Data for last N periods.

Range Method
abs(Open-Close) or High-Low

Presentation of Results
Absolute
Relativ - as a percentage

Would you modify this indicator to the following math, or write a new indicator.

Range Method
Up=(High-Low)/(CurrentPrice-Low)/100 Green line when changes to up
Down=(High-Low)/(High-CurrentPrice)/100 Red line when changes to down
Current bar in not part of the calculated range. When indicator reaches 101% you have a breakout of the range.
"A hundred pips a day keeps the collector away"

sho-me-pips

Posts: 82
Joined: Sat Sep 11, 2010 8:38 am

### Re: Average Period Range

Apprentice
FXCodeBase: Confirmed User

Posts: 22134
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

### Re: Average Period Range

Apprentice
FXCodeBase: Confirmed User

Posts: 22134
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

### Re: Average Period Range

Exactly!! Thank You very much.
"A hundred pips a day keeps the collector away"

sho-me-pips

Posts: 82
Joined: Sat Sep 11, 2010 8:38 am

### Re: Average Period Range

MQL4 version of Average Period Range: http://www.fxcodebase.com/code/viewtopi ... 38&t=59129.
Alexander.Gettinger
FXCodeBase: Confirmed User

Posts: 3785
Joined: Wed Mar 31, 2010 9:40 pm
Location: Russia, Omsk

### Re: Average Period Range

The indicator was revised and updated.

Apprentice
FXCodeBase: Confirmed User

Posts: 22134
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

### Re: Average Period Range Projections

Apprentice wrote:
APR Projections.png

APR Projections.lua

can a history option be added to this which would plot prior period ranges?
7510109079

Posts: 402
Joined: Wed May 18, 2011 7:23 am

### Who is online

Users browsing this forum: Bing [Bot], wuhuilin11 and 8 guests