Tomasz,thanks for your reply. I have my database setting for Base time interval set to Tick.
Does this mean that I can not plot the trend from a 259 tick chart in a 13 tick chart ? I would also like to be able to plot the previous High and Low of the 259 tick chart in the 13 tick chart. If this is possible how would I code it? I have tried, but so far I am unsuccessful. Thanks for your help, Greg --- In [email protected], "Tomasz Janeczko" <[EMAIL PROTECTED]> wrote: > > 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 > > > > > > > > > > >
