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

Re: [EquisMetaStock Group] Rate of Return Indicator



PureBytes Links

Trading Reference Links

Hi Mark
 
 
If you want a rolling annual % rate of return based on the most recent bar then this variation will provide it.
 
 {Rolling Annual % Rate Of Return}
D:=DayOfMonth();A:=LastValue(D);U:=Cum(1);
M:=Month();B:=LastValue(M);Y:=Year();
G:=M*31+D-(M>B OR (M=B AND D>A))*372;
Z:=PeakBars(1,G,1)=0 OR U=LastValue(U);
A:=ValueWhen(1,Z,C);
B:=ValueWhen(2,Z,C);
PREC(100*(A-B)*(B<>0)/(Abs(B)+(B=0)),2);
 
 
Regards
 
Roy
 
 
----- Original Message -----
Sent: Monday, September 08, 2008 5:23 PM
Subject: [EquisMetaStock Group] Rate of Return Indicator

Hi,

Does anyone know where i can find an indicator that can plot the
Annual Rate of Return from one year to the next?

Any help would be much appreciated!

Mark



__________ NOD32 3424 (20080907) Information __________

This message was checked by NOD32 antivirus system.
http://www.eset.com
__._,_.___

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

__,_._,___