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

Notification

Icon
Error

Options
Go to last post Go to first unread
smackdabble  
#1 Posted : Friday, June 26, 2009 6:03:22 PM(UTC)
smackdabble

Rank: Newbie

Groups: Registered, Registered Users, Subscribers
Joined: 9/9/2008(UTC)
Posts: 4

How can the system test start with an already established 34-month moving average? Waiting for the 34-month moving average to become established delays the first entry at least that many bars. Yet, buy & hold performance comparison includes that first 34 bars in which I can't establish an entry. This makes it very difficult to make a valid comparison between my trading performance and the buy & hold performance. Any solutions to this delima?
wabbit  
#2 Posted : Friday, June 26, 2009 6:19:15 PM(UTC)
wabbit

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers, Unverified Users
Joined: 10/28/2004(UTC)
Posts: 3,111
Location: Perth, Western Australia

Was thanked: 16 time(s) in 16 post(s)
Hi smackdabble,

Welcome to the forum.

Try writing another test where the entry criteria is:
Code:
{if the next bar is the first bar when the moving average is defined, enter at OPEN}
ma:=mov(c,34,s);
ref(cum(isdefined(ma)),+1)=1;


Have a look in the MS Users Manual for what each function component does. Depending on the specifics of how you want to do the comparison, the forward referencing may not be necessary, but it is if you want to enter at the OPEN of the first bar in the period and exit at the CLOSE of the last bar.



Hope this helps.

wabbit [:D]

P.S. You could adapt this concept to be run in an exploration, but try running the new benchmark EST first.
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.