[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[amibroker] Re: Dynamic range bars???



PureBytes Links

Trading Reference Links

No Luck so far.. looks like it cant be done.


--- In amibroker@xxxxxxxxxxxxxxx, "Jerry Gress" <pleasenospamplease@xxx> wrote:
>
> Hello,
> 
> I also would like to know if you received any help/info on Range Bars??
> 
> Jerry
> 
> -----Original Message-----
> From: amibroker@xxxxxxxxxxxxxxx [mailto:amibroker@xxxxxxxxxxxxxxx] On Behalf
> Of Ashish Bhatia
> Sent: Monday, July 27, 2009 5:18 AM
> To: amibroker@xxxxxxxxxxxxxxx
> 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
>




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

**** 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

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/amibroker/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/amibroker/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:amibroker-digest@xxxxxxxxxxxxxxx 
    mailto:amibroker-fullfeatured@xxxxxxxxxxxxxxx

<*> To unsubscribe from this group, send an email to:
    amibroker-unsubscribe@xxxxxxxxxxxxxxx

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/