The code will work if you apply it to 1-tick chart.

Best regards,
Tomasz Janeczko
amibroker.com
----- Original Message ----- 
From: "tedd2pumpkin" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Wednesday, December 12, 2007 3:02 PM
Subject: [amibroker] Time Frame Functions with n-tick charts


> Hi,
> 
> I am using n-tick charts  and would like to plot a ribbon that shows 
> the trend as defined in a 259-tick time frame. How can I correct the 
> following code to do this, please?
> 
> TimeFrameMode(1);
> TimeFrameSet(259);//259t
> bbtrendup259 = H > Ref(H,-1);
> bbtrenddown259 = L < Ref(L,-1);
> TimeFrameRestore();
> //Ribbon
> up = TimeFrameExpand(bbtrendup259,259) ;
> down = TimeFrameExpand(bbtrenddown259,259) ;
> Plot( 10,/* defines the height of the ribbon in percent of pane 
> width 
> */"",IIf(up, colorAqua,IIf(down, colorPink,colorYellow )), /* choose 
> color */
> styleOwnScale|styleArea|styleNoLabel, -0.5, 100 );
> 
> Thanks,
> 
> Greg
> 
> 
> 
> Please note that this group is for discussion between users only.
> 
> To get support from AmiBroker please send an e-mail directly to 
> SUPPORT {at} amibroker.com
> 
> For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
> http://www.amibroker.com/devlog/
> 
> For other support material please check also:
> http://www.amibroker.com/support.html
> 
> Yahoo! Groups Links
> 
> 
> 
> 
>

Reply via email to