Average Daily Range (ADR) Projection

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.

Moderator: admin

Re: Average Daily Range (ADR) Projection

Postby Apprentice » Sun Oct 30, 2011 7:01 am

method host:execute("drawLabel", ...)
It does not support font size.

Instead, you can use.
host method: Execute ("drawLabel1", ...)

A complete description can be found here.
http://www.fxcodebase.com/documents/Ind ... abel1.html
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36341
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: Average Daily Range (ADR) Projection

Postby sabrumea » Wed Nov 02, 2011 7:22 am

oh well i tried that, friend, it is not working for me :( can you help me with it? could you fix the font option too when you would be doing historical version of this indicator?... the historical option would be very very useful! this is a good indicator especially on daily basis and with averaging for 8 periods! and the font option is necessary because right now you did this indicator in such a way that lines are not extended till the end of the period so it clatters the chart :( can not see my candles well :shock: .... so if you could either extend the lines till the end of the period or make the font option it would be really great!!!
User avatar
sabrumea
 
Posts: 34
Joined: Thu Aug 26, 2010 6:15 pm

Re: Average Daily Range (ADR) Projection

Postby currencytrader » Tue Nov 08, 2011 4:40 pm

this ADR calculates the last 5 days excluding the current active day? it makes it base of calculation from which point?
currencytrader
 
Posts: 1
Joined: Tue Nov 08, 2011 4:36 pm

Re: Average Daily Range (ADR) Projection

Postby Apprentice » Wed Nov 09, 2011 6:14 pm

From the current high / low,
Plus / Minus, ADR value for last N periods.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36341
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: Average Daily Range (ADR) Projection

Postby Sepp64 » Thu Apr 26, 2012 8:40 am

Hello Apprentice,

Ref.: MTF ADR Projection.lua

In the ATR Projections calculations it seams to me, that in the formula you do include the current day in the calculation. ATR calculations should be done excluding the current day or candle!

Ej, For ATR5 you should use the last 5 already CLOSED daily candles for calcs. If the current day is taken into account then there is an ADR value based on an open candle and this value can anything from 0 upwards. This distorts the real ADR Projection for the Day which should be the same value for the entire day.

Can you please make the changes or let me know any comments you have on this,

Thanks
Sepp64
 
Posts: 10
Joined: Sun Mar 18, 2012 9:08 am

Re: Average Daily Range (ADR) Projection

Postby Apprentice » Fri Apr 27, 2012 2:36 am

I guess that option can be added, which would enable the selection,
between these two possibilities.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36341
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: Average Daily Range (ADR) Projection

Postby Sepp64 » Mon Apr 30, 2012 12:50 pm

Good,

would you please so kind and add this option.
Sepp64
 
Posts: 10
Joined: Sun Mar 18, 2012 9:08 am


Re: Average Daily Range (ADR) Projection

Postby Alexander.Gettinger » Fri Jun 15, 2012 10:38 am

MQL4 version of this indicator: viewtopic.php?f=38&t=20224
Alexander.Gettinger
FXCodeBase: Confirmed User
 
Posts: 3785
Joined: Wed Mar 31, 2010 9:40 pm
Location: Russia, Omsk

Re: Average Daily Range (ADR) Projection

Postby SuperTrader » Mon Aug 13, 2012 3:09 am

This is a very useful indicator Apprentice, thank you for that. :) But can we please have the 4 text strings (on the screenshot) on the left side of the chart instead ? Or in one of the left corners (top/bottom). Or at least a user option for all the text positioned either on left or right side. This way we can use all that space on the right of the chart for more price bars (by shifting the chart all the way to the right extreme). Thank you very much in advance ! ;)
User avatar
SuperTrader
 
Posts: 84
Joined: Thu May 20, 2010 12:52 pm
Location: Europe

PreviousNext

Return to Custom Indicators

Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 45 guests