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

Re: [amibroker] How is the AB UPI calculated?



PureBytes Links

Trading Reference Links

Thank you Graham,


herman


For tips on developing Real-Time Auto-Trading systems visit:

http://www.amibroker.org/userkb/


Thursday, April 24, 2008, 5:36:58 PM, you wrote:


> Hi Herman

> I think this calculates the UPI correctly for a single symbol test. In

> this case it is over 5 years (1260 bars)


> bi = BarIndex();

> BarsPerYear = 252;

> bars = 1260;

> TresuryNotesProfit = 5.4;

> eq = C;

> Heq = HighestSince( bi == (BarCount-bars), eq );

> DD = (Heq-eq)/Heq;

> UI5 = sqrt(Sum( DD^2/bars, bars));

> UPI5 = ( 100*(eq/Ref(eq,-bars)-1)^(BarsPerYear/bars) -

> TresuryNotesProfit ) / UI5;



__._,_.___

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

__,_._,___