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

Re: [amibroker] Time Frame Functions with n-tick charts



PureBytes Links

Trading Reference Links

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

Best regards,
Tomasz Janeczko
amibroker.com
----- Original Message ----- 
From: "tedd2pumpkin" <gregbean@xxxxxxxxxxx>
To: <amibroker@xxxxxxxxxxxxxxx>
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
> 
> 
> 
> 
>


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

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