gawdib
12th March 2004, 04:44 PM
no matter what values i use in this formula, the results are the same. I have read over the manual many many times, but i just cannot get what it means. please explain. thank you. in the below examples i put in 2 different valuse for trailing stop and inital stops. all 4 results yield identical answers. If i leave out the parts about inital stop and trailing stop, i have no problem getting defferent answers, whenever i change the values in the exit trigger. thank you. geoffrey
a:
EntryTrigger:=Fml("buycombofeb29") ; EntryPrice:=close; ExitTrigger:=ROC(Fml("voltrgapdivervoldiff3"),2,%)<0 ;
ExitPrice:=close; initialstop:=.76*entryprice;
extFml("TradeSim.Initialize"); ExtFml("tradesim.enableprotectivestop",3);
ExtFml("tradesim.trailingstop",trigger,long, .24* c ,HHV(C,10) ,low) ;
ExtFml("tradesim.setTIMEstop",100); ExtFml("tradesim.setstopgappricetoopen"); ExtFml( "TradeSim.RecordTrades", " 27",LONG, EntryTrigger, EntryPrice, INITIALSTOP, ExitTrigger, ExitPrice, START);
b:
EntryTrigger:=Fml("buycombofeb29") ; EntryPrice:=close; ExitTrigger:=ROC(Fml("voltrgapdivervoldiff3"),2,%)<0 ;
ExitPrice:=close; initialstop:=.96*entryprice;
ExtFml("TradeSim.Initialize"); ExtFml("tradesim.enableprotectivestop",3);
ExtFml("tradesim.trailingstop",trigger,long, .04* c ,HHV(C,10) ,low) ;
ExtFml("tradesim.setTIMEstop",100); ExtFml("tradesim.setstopgappricetoopen"); ExtFml( "TradeSim.RecordTrades", " 27",LONG, EntryTrigger, EntryPrice, INITIALSTOP, ExitTrigger, ExitPrice, START);
a:
EntryTrigger:=Fml("buycombofeb29") ; EntryPrice:=close; ExitTrigger:=ROC(Fml("voltrgapdivervoldiff3"),2,%)<0 ;
ExitPrice:=close; initialstop:=.76*entryprice;
extFml("TradeSim.Initialize"); ExtFml("tradesim.enableprotectivestop",3);
ExtFml("tradesim.trailingstop",trigger,long, .24* c ,HHV(C,10) ,low) ;
ExtFml("tradesim.setTIMEstop",100); ExtFml("tradesim.setstopgappricetoopen"); ExtFml( "TradeSim.RecordTrades", " 27",LONG, EntryTrigger, EntryPrice, INITIALSTOP, ExitTrigger, ExitPrice, START);
b:
EntryTrigger:=Fml("buycombofeb29") ; EntryPrice:=close; ExitTrigger:=ROC(Fml("voltrgapdivervoldiff3"),2,%)<0 ;
ExitPrice:=close; initialstop:=.96*entryprice;
ExtFml("TradeSim.Initialize"); ExtFml("tradesim.enableprotectivestop",3);
ExtFml("tradesim.trailingstop",trigger,long, .04* c ,HHV(C,10) ,low) ;
ExtFml("tradesim.setTIMEstop",100); ExtFml("tradesim.setstopgappricetoopen"); ExtFml( "TradeSim.RecordTrades", " 27",LONG, EntryTrigger, EntryPrice, INITIALSTOP, ExitTrigger, ExitPrice, START);