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

Re: [amibroker] Formula that will give me the % change in stock price



PureBytes Links

Trading Reference Links

I think this does what you want, thanks to Dick Hoierman.   Ron D

basis = C; // ema(C, 9);

perf1 = basis / Ref(basis, -1) * 100 - 100;

perf5 = basis / Ref(basis, -5) * 100 - 100;

perf30 = basis / Ref(basis, -30) * 100 - 100;

//AddTextColumn( FullName(), "FullName" );

AddColumn (Close, "Close",1.2);

AddColumn (Ref(Close,-1), "Close-1",1.2);

AddColumn(perf1, "perf1%", 1.2);

AddColumn(perf5, "perf5%", 1.2);

AddColumn(perf30, "perf30%", 1.2);

AddColumn(Volume, "Volume", 1.0);

Filter = 1; // dummy

 

----- Original Message -----
From: John
Sent: Friday, July 13, 2007 3:40 PM
Subject: [amibroker] Formula that will give me the % change in stock price

Hi
I am looking for a formula that will give me the percentage change in a
stocks price during a period i can select of week - month or year.
I am hoping there is an existing formula that i can use in AmiBroker..

__._,_.___

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





SPONSORED LINKS
Investment management software Investment property software Investment software
Investment tracking software Return on investment software

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

__,_._,___