PDA

View Full Version : explorer will not work with tradesim


gawdib
21st May 2004, 03:40 AM
I put a tradesim formula into metastock explorer.
Then I watch it process the list of securities.
I notice that explorer rejects stocks, seemingly, in a haphazard way.

If I reduce the trade days allowed,in the timestop part, explorer indicates it rejects twice as many stocks.
If I use different ways of indicating the exit price, explorer rejects different amounts of stock, even tho the metastock language is saying the same thing.
For example, if i use the "min" way of having tradesim take the exit price as either the opening price or yesterdya"s trailing stop value, the explorer rejects 60% of the stocks it is processsing.
I f I use the way I do it in the below example, then 6% of stock are rejected.
If I use the enable price filter function, then, 2 % of stocks are rejected but explorer makes no trades. ETc ETc.
How can I have any confidence in Tradesim? PleASEadvise what might be wrong, and
how to know what sort of coding tradesim will not allow with metastock to indicate the exit price. thank you, regards, geoffrey

z1:= FmlliStop 4");z2:=Fml(Stop 3") ;
x:= fml("sss");
y:=(C-Ref(C,-60))/ATR(60);
entrytrigger:=Ref(Mov(VOLUME,50,S)>7500 AND C>6
AND ATR(2)<2.2*ATR(60))),-1)
AND Ref( Mov(Sum( If(L<.9*h,-1),1,0) ,11),5,S)>8 AND (CMO(C,30)>0 )
AND Ref(HHV(H,25),-1)/x>1.2,-1)
,-1) ; EntryPrice:=OPEN;

ExitTrigger:=If(Fml("spxc"),LOW<=Ref(z1,-1),LOW<=Ref(z2,-1));

ExitPrice :=If(O<If(Fml("spxc"),Ref(z1,-1),Ref(z2,-1)),O,If(Fml("spxc"),Ref(z1,-1),Ref(z2,-1)));

initialstop:=C<.92*entryprice;

ExtFml( "TradeSim.Initialize
ExtFml("tradesim.settimestop",15);

ExtFml("tradesim.setstartrecorddate",1,1,2000);ExtFml("tradesim.setstoprecorddate",1,1,2003);


ExtFml( "TradeSim.RecordTrades",
"may20", { Trade Data Filename }
LONG, { Trade Position Type }
EntryTrigger, { Entry Trigger }
EntryPrice, { Entry Price }
InitialStop, { Optional Initial Stop }
ExitTrigger, { Exit Trigger }
ExitPrice, { Exit Price }
START); { Recorder Control }

David Samborsky
24th May 2004, 01:39 AM
check that the number of days in the data loading options is sufficient.

you might want to construct an indicator with your relevant formulas and overlay it on the stocks that are giving you problems.

checkout document TB-1 for more information on debugging your explorations.