PDA

View Full Version : Using ATR() trailing stop to define the ExitPrice


elljay1867
8th May 2005, 08:46 AM
I am using;
ExitTrigger :=
ExtFml("TradeSim.TrailingStop",
Trigger,
Long,
1.*ATR(10),
HIGH,
LOW);
as my exittrigger. Could you tell me how i could use the result in the ExitLong:=???

as i wish to use the exittrigger to set the exitprice and sell with Conditional Orders on the day the exittrigger is triped.
I have tryed using
ExitPrice:=
Ref(ExitTrigger,-1);

and

ExitPrice:=
ExtFml("TradeSim.TrailingStop",
Band,
Long,
1.*ATR(10),
HIGH,
LOW);
both of these gave erorr's.
your help would be much apprecated.
If only it was as easy as adding "ExtFml("SetExitPriceToExitStop");
les

David Samborsky
9th May 2005, 01:52 AM
Try the following:-


ExitTrigger :=
ExtFml("TradeSim.TrailingStop",
Trigger,
Long,
1.*ATR(10),
HIGH,
LOW);

ExitPrice:=
ExtFml("TradeSim.TrailingStop",
Band,
Long,
1.*ATR(10),
HIGH,
LOW);