Oxy,
Thks.
.........................8.....................
EntryTrigger := Fml( "System ...............") ;
EntryPrice := CLOSE;
ExitTrigger := Fml( ...........) > C ;
ExitPrice := O;
InitialStop := If(Fml( "System - ...........") = 1 ,Ref(L,-1),0);
ExtFml( "TradeSim.Initialize"); { Initialize internal variables }
ExtFml("TradeSim.EnableDelayOfEntryByOneBar");
ExtFml("TradeSim.DisableDelayOfAllExitsByOneBar");
ExtFml("TradeSim.EnableProtectiveStop",0);
ExtFml("TradeSim.SetExitPriceToInitialStop");
ExtFml( "TradeSim.RecordTrades",
"System Asish 1 example", { Trade Data Filename }
LONG, { Trade Position Type }
EntryTrigger, { Entry Trigger }
EntryPrice, { Entry Price }
InitialStop, { Initial Stop }
ExitTrigger, { Exit Trigger }
ExitPrice, { Exit Price }
START); { Trade Recorder Control }
........................................................8...........................
Where is it wrong ? (To enable Protective Stop)
Asish