PDA

View Full Version : Error message


Michael
14th September 2003, 04:23 AM
Thanks for your previous help, David. Here's another one for you - I have entered up the codes for a TradeSim exploration but when I exit I get the following message at the beginning of the word "Start" in the last line of the formulae."This is not a recognized name, constant or operator."
This does not tell me what the problem is or where it is.
I can't find a fault in the coding nor the syntax. Any ideas where I should look (again)?

Thanks,

David Samborsky
14th September 2003, 08:05 AM
Could you please list your exploration formula and I will have a look at it.

Michael
15th September 2003, 04:07 AM
Thanks David. Here we are:

LongEntryTrigger:= Mov(C*V,4,E)>1000000 {Liquid} AND

Fml( "Drawdown12.5%") <0.5 {Drawdown} AND

Fml( "ROAR")>60 {ROAR} AND

C< Fml( "ActVest Central Cord") AND

Sum(L> HHV(L-ATR(5), 8),12)=12 {Above weekly atr stop for past 12 weeks};

LongEntryPrice:=OPEN;

LongExitTrigger:= Fml( "ROAR")<40 ;

LongExitPrice:= OPEN;

ExtFml("TradeSim.Initialize");
ExtFml("TradeSim.SetStartRecordDate",1,1,2002);
ExtFml("TradeSim.EnableDelayOfEntryByOneBar");
ExtFml("TradeSim.EnableDelayOfAllExitsByOneBar");
ExtFml("TradeSim.RecordTrades","XYZ",Long,
LongEntryTrigger,
LongEntryPrice,
LongExitTrigger,
LongExitPrice,
Start);

David Samborsky
15th September 2003, 11:04 AM
You forgot the InitialStop parameter place holder in the call to the RecordTrades function.


ExtFml&#40;"TradeSim.RecordTrades","XYZ",Long,
LongEntryTrigger,
LongEntryPrice,
0, &#123; assign '0' if InitialStop not being used &#125;
LongExitTrigger,
LongExitPrice,
Start&#41;;

Michael
16th September 2003, 01:44 AM
Thanks David (again).