basil
7th December 2003, 02:10 PM
Hi David,
I have attached the code for a system I am developing and I am struggling to find out where I am making errors. I have just attached the long side for simplicity and was hoping you might be able to shed some light on what I am doing wrong. Although the Metastock search it is not rejecting securities I am getting this error message in Tradesim.
9:59:35 PM: Loading C:\TradeSimData\testtest.trb
9:59:35 PM: Starting Trade Database Error Report
------------------------------------------------------------------------------
------------------------------------------------------------------------------
9:59:35 PM: Ending Trade Database Error Report
9:59:35 PM: Trade Database Processing Error caused by: No valid trading records in database
9:59:35 PM: Error Processing Trade Database - Check Message Log for Details: Process Aborted
LongEntryTrigger:= (Cross(C,Ref(HHV(H,3),-1)) AND OPEN>Ref(C,-1));
LongEntryPrice := OPEN;
LongExitTrigger:= Cross(Ref(LLV(LOW,3),-1),LOW);
LongExitPrice:= OPEN;
LongInitialStop := Ref(LLV(LOW,3),-1);
ExtFml("Tradesim.Initialize");
ExtFml("TradeSim.SetStartRecordDate",01,06,1996);
ExtFml("TradeSim.SetStopRecordDate",07,11,2003);
ExtFml( "TradeSim.SetExitPriceToInitialStop");
ExtFml( "TradeSim.SetStopGapPriceToOpen");
ExtFml("Tradesim.RecordTrades",
"testtest",
LONG,
LongEntryTrigger,
LongEntryPrice,
LongInitialStop,
LongExitTrigger,
LongExitPrice,
START);
Any help would be appreciated
Thanks
Basil
I have attached the code for a system I am developing and I am struggling to find out where I am making errors. I have just attached the long side for simplicity and was hoping you might be able to shed some light on what I am doing wrong. Although the Metastock search it is not rejecting securities I am getting this error message in Tradesim.
9:59:35 PM: Loading C:\TradeSimData\testtest.trb
9:59:35 PM: Starting Trade Database Error Report
------------------------------------------------------------------------------
------------------------------------------------------------------------------
9:59:35 PM: Ending Trade Database Error Report
9:59:35 PM: Trade Database Processing Error caused by: No valid trading records in database
9:59:35 PM: Error Processing Trade Database - Check Message Log for Details: Process Aborted
LongEntryTrigger:= (Cross(C,Ref(HHV(H,3),-1)) AND OPEN>Ref(C,-1));
LongEntryPrice := OPEN;
LongExitTrigger:= Cross(Ref(LLV(LOW,3),-1),LOW);
LongExitPrice:= OPEN;
LongInitialStop := Ref(LLV(LOW,3),-1);
ExtFml("Tradesim.Initialize");
ExtFml("TradeSim.SetStartRecordDate",01,06,1996);
ExtFml("TradeSim.SetStopRecordDate",07,11,2003);
ExtFml( "TradeSim.SetExitPriceToInitialStop");
ExtFml( "TradeSim.SetStopGapPriceToOpen");
ExtFml("Tradesim.RecordTrades",
"testtest",
LONG,
LongEntryTrigger,
LongEntryPrice,
LongInitialStop,
LongExitTrigger,
LongExitPrice,
START);
Any help would be appreciated
Thanks
Basil