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

Re: [amibroker] Report with % gains



PureBytes Links

Trading Reference Links

Try something like this as an exploration (adjust format of columns as necessary):
 
filter = status("lastbarinrange");
p1 = 100 * ((c - ref(c, -1)) / ref(c, -1));
p5 = 100 * ((c - ref(c, -5)) / ref(c, -5));
// etc.
addtextcolumn(name(), "Symbol");
addtextcolumn(date(), "Date");
addcolumn(p1, "p1");
addcolumn(p5, "p5");
//etc.
 
Bill
 
----- Original Message -----
From: "upsidetarget" <digimax@xxxxxxxxx>
Sent: Wednesday, October 10, 2007 11:06 AM
Subject: [amibroker] Report with % gains

> Hi All,
>
> After 4 months using Amibroker, I am admittedly still lame at creating
> reports. I am asking for some help with a very simple report.
>
> It is an output of close to close gains:
>
> Symbol
> Date
> 1 period % Gn
> 5 period % Gn
> 22 period % Gn
> 63 period % Gn
> 252 period % Gn
>
> Can anyone help with this?
>
> Thanks,
>
> Michael
>
>
>
> 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/
> __._,_.___

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




Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___