logo
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
michaelesq  
#1 Posted : Tuesday, January 24, 2006 7:59:33 PM(UTC)
michaelesq

Rank: Newbie

Groups: Registered, Registered Users
Joined: 1/24/2006(UTC)
Posts: 6

Hi: I am working with MetaStock 8.01 Professional. I am creating a backtest in which I would like to use let's say Moving Average Crossover of the 20 and 50 day MA of a composite which I created IWM/SPY (divide IWM's by SPY's to determine relative strength of the two ETF's). I want to run the System Backtest against another composite (IWM - SPY) to get an idea of the returns which would be generated by going long IWM and simultaneously shorting SPY. I tried doing this by referencing the composite with the Security Data Function but an error message indicated that there is no such thing as a composite in this function. I then tried to synthetically do this by using the following formula: Security( "IWM", MOV(C,20,E)/Security( "SPY", MOV(C,20,E) > Security( "IWM", MOV(C,50,E)/Security( "SPY", MOV(C,50,E))))) I receive error messages doing this as well. My question: Is there a correct way to reference a composite and embed it in the formula above? Many thanks for your assistance.
Patrick  
#2 Posted : Tuesday, January 24, 2006 8:07:10 PM(UTC)
Patrick

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers
Joined: 9/8/2004(UTC)
Posts: 2,266

Was thanked: 1 time(s) in 1 post(s)
Because it is a composite you are referencing in your security call make sure to specify the path of the data file. By writing Security( "IWM", metastock tries to find the symbol IWM online ... Instead use something like Security( "C:\\Metastock Data\\Mycompositesfolder\\IWM", .... Patrick :mrgreen:
michaelesq  
#3 Posted : Tuesday, January 24, 2006 8:16:35 PM(UTC)
michaelesq

Rank: Newbie

Groups: Registered, Registered Users
Joined: 1/24/2006(UTC)
Posts: 6

That you for your quick respond. I was under the impression that because the composite IWM/SPY is located in the same folder as the base securities (IWM and SPY), then referencing using the full path was not necessary. However, I certain am not adverse to giving it a try. Thanks again - I'll post whether this is sucessful in a little while.
Users browsing this topic
Guest (Hidden)
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.