PureBytes Links
Trading Reference Links
|
Tom,
Yup, that's the stuff!!!!
Sorry for the delayed response. Right after I posted to your question, I
left for an *extended* Memorial Day vacation. I'm just getting through some
600+ messages that have gone into my Inbox over that time period....
I haven't had a chance to test this out in Metastock, but all I'd change
from looking at it is this:
On your If() statements, I'd use something like Periods+4 or 6. Just to
make sure that your EQTY doesn't start accumulating too soon. Also, I'd
change the statement to say CUM(If...). I may be mistaken, but I think that
the way it's written, you'll get zero for the bars up to Periods, but once
you pass that threshold, you'll get the Cum() of the whole line, not just
the Cum() from bar=Periods and beyond. This would be true for all of the
indicators.
Dave Nadeau
Fort Collins, CO
> -----Original Message-----
> From: owner-metastock@xxxxxxxxxxxxx
> [mailto:owner-metastock@xxxxxxxxxxxxx]On Behalf Of Tom Sprunger
> Sent: Friday, May 25, 2001 9:39 AM
> To: metastock@xxxxxxxxxxxxx
> Subject: Re: System Tester Equity Line
>
>
> Thanks, Dave. My problem is that I am going to test swing trade
> setups and
> they don't have a lot of trades on an individual stock
> sometimes. But when
> you take them in context of 100's of stocks, they work fine. So I'm
> interested in getting the data correct to build a valid data base of maybe
> thousands of trades.
>
> So, I'd like to get the number of trades, winners, equity, etc accurate.
>
> Now it appears that "Periods" defines not only defines the Indicator
> duration (a MA in this case) but could also be used as a valid starting
> point for the data. For example, if you had a 50 day MA then the
> indicator
> is not valid until you have 50 days of data. Thus you would have
> up to the
> the number of "Periods" to do the intitalization on the POSN.
>
> So what if you added an if statement to the appropriate formulas to
> disregard all the trades (specifically the setup trade) prior to the time
> the data was valid? Examples below.
>
> EQTY:=If(Cum(1)<Periods,0,Cum(If(Ref(POSN,-1)=1,EntryPoint-Ref(Ent
> ryPoint,-1
> ),0)));
> {keeps equity at zero through the # of periods. You would then force your
> dummy trade to happen prior to the end of periods}
>
> TotTrades:=If(Cum(1)<Periods,0,Cum(Cross(POSN,0.5)));
>
> WinTrade:=If(Cum(1)<Periods,0,(ValueWhen(1,Ref(Cross(POSN,0.5),-1)
> ,EntryPoin
> t)<ValueWhen(1,Ref(Cross(0.5,POSN),-1),EntryPoint)));
>
> Winners:=If(Cum(1)<Periods,0,Cum(Cross(WinTrade,0.5)));
>
> This would say that you would use the "Periods" even if your indicator
> didn't require it for the trade. You might set it at 3 for a minimum and
> set the EnterLong dummy at 1 and ExitLong dummy at 2.
>
> Thoughts?
>
> Tom
>
>
_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com
|