Hello,

I also would like to know if you received any help/info on Range Bars??

Jerry

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf
Of Ashish Bhatia
Sent: Monday, July 27, 2009 5:18 AM
To: [email protected]
Subject: [amibroker] Dynamic range bars???

Hi all,

I am trying to make dynamic range bars - which would change size depending
upon day's opening price.

so far, I have done this and am stuck here:
*******************************************************
TimeFrameMode(4); // range mode

price = ValueWhen(DateNum() != Ref(DateNum(),-1),O,1); // daily open 

tf = 0.002*price; // 2 percent of opening price

y = tf/0.5; //divided by ticksize

x=int(y); // integer value
z = SelectedValue(BarIndex());


TimeFrameSet(x[z]);
PlotOHLC(O,H,L,C,"Price "+x,colorBlue);
******************************************************

Selectedvalue or lastvalue affects the whole data, whereas I am looking for
a unique range each day. Any ideas whether possible or not??

Thanks

Ashish



------------------------------------

**** IMPORTANT PLEASE READ ****
This group is for the discussion between users only.
This is *NOT* technical support channel.

TO GET TECHNICAL SUPPORT send an e-mail directly to 
SUPPORT {at} amibroker.com

TO SUBMIT SUGGESTIONS please use FEEDBACK CENTER at
http://www.amibroker.com/feedback/
(submissions sent via other channels won't be considered)

For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/

Yahoo! Groups Links



Reply via email to