PDA

View Full Version : No trades in database


ajellis
17th March 2004, 04:44 PM
I just transplanted the exact same Tradesim exploration from my laptop, which works fine, to my desktop. I used the import function, and have manually checked that the exploration formula is the same.

My desktop records no trades. I imported three explorations and none of them records a single trade for tradesim.

I checked the report from the exploration and sure enough, the laptop shows a few signals, the desktop none.

I can't figure out why this is happening. Can you see something missing?

This is the exploration (which works on the laptop but not the desktop)

delay:=1;
LongEntryTrigger:=
When(C>Mov(C,40,E)) AND
When(C,>,Mov(C,40,S))AND When(Ref(C,-1),<,Mov(Ref(C,-1),40,S))AND When((Mov(ROC(C,39,%),26,E)*1)+(Mov(ROC(C,52,%),26 ,E)*2)+(Mov(ROC(C,78,%),26,E)*3)+(Mov(ROC(C,109,%) ,39,E)*4),>,Mov( (Mov(ROC(C,39,%),26,E)*1)+(Mov(ROC(C,52,%),26,E)*2 )+(Mov(ROC(C,78,%),26,E)*3)+(Mov(ROC(C,109,%),39,E )*4),26,E))AND When((Mov(ROC(C,39,%),26,E)*1)+(Mov(ROC(C,52,%),26 ,E)*2)+(Mov(ROC(C,78,%),26,E)*3)+(Mov(ROC(C,109,%) ,39,E)*4),<,0);

LongEntryPrice:=OPEN;
LongExitTrigger:=
L<=(CLOSE-3*ATR(10));
LongExitPrice:=CLOSE-3*ATR(10);
LongInitialStop:=Ref(CLOSE-5*ATR(10),-1);

ExtFml("TradeSim.Initialize");
ExtFml("TradeSim.SetStartRecordDate",1,1,1998);
ExtFml("TradeSim.SetStopRecordDate",12,12,2003);

ExtFml("TradeSim.RecordTrades",
"LT KST Buy",
LONG,
LongEntryTrigger,
LongEntryPrice,
LongInitialStop,
LongExitTrigger,
LongExitPrice,
START)

David Samborsky
18th March 2004, 01:33 AM
First thing to do is to check your data loading options in the explorer options. It is probably set to "Load Minimum Records". Set it to a reasonable value which at least matches the data period of interest.

ajellis
20th March 2004, 03:01 AM
I checked the load options and it was set to load 10000 periods.

I changed it to 65000 just to make sure and told the tradesim to record from 1990 to 2004.

It only recorded 38 trades, no earlier than 1999, and then I got a single trade result in my monte carlo analysis. The trade database had 38, but the results only show one trade. Complete rubbish of course.

This all sounds a mess so I tried another exploration with a different formula which also works fine on my laptop and it gave an error message
"no valid trades recorded". I had preset the load options as per above.

What else could be wrong?

David Samborsky
22nd March 2004, 02:18 AM
What does the Error Log report?

ajellis
30th March 2004, 03:46 AM
I don't know, I binned everything and started again and on this occasion I managed to make it work. I'm baffled but there you go.