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

RE: System Tester Equity Line



PureBytes Links

Trading Reference Links

Tom,

That's exactly the reason.  I'm forcing a quick one day trade as soon as the
moving averages 'come alive' (or rather become defined).  Because I have to
use the BarsSince() function to determine if the system is long or short,
this quick trade starts the comparison.  Otherwise, the POSN formula misses
the first trade.  It's not a big deal if you have a system that generates
many trades, and the one trade for one bar has a negligible effect,
especially if you have a security that's split many times, and the early
data has ridiculously small values.  On the other hand, if you have only a
few trades over a fewer number of bars, like a daily 90 day S&P contract,
then it's a "lesser of two evils" solution.

Dave

-----Original Message-----
From: owner-metastock@xxxxxxxxxxxxx [mailto:owner-metastock@xxxxxxxxxxxxx]On
Behalf Of Tom Sprunger
Sent: Thursday, May 24, 2001 4:09 PM
To: metastock@xxxxxxxxxxxxx
Subject: Re: System Tester Equity Line


Dave, I have a question on the code you provided.

On the two lines for the EnterLong and ExitLong:

EnterLong:=If(Cum(1)=Periods+3,1,Cross(C,Mov(C,Periods,S)) AND
(V>1.1*Ref(V,-1) AND Ref(V,-1)>1.1*Ref(V,-2)));

ExitLong:=If(Cum(1)=Periods+4,1,Cross(Mov(C,Periods,S),C));

Why do you have the "Cum(1)=Periods +3,1" in the EnterLong and the
"Cum(1)=Periods+4,1" in the ExitLong?

It would appear that this gives you a forced entry 13 days after the start
of the chart and a forced exit 14 days after the start of the chart.  Is
this to initialize?  If so, why?

By the way this is pretty slick!

Thanks for you answer.

Tom


_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com