gsandral
16th August 2005, 07:37 AM
Hi Jose or David,
Re: Intra day exits
Could you please consider the following?
1. End of day exits- If either condition is met then exit on the open of the next day - I have delayed bars ExtFml set.
LongExitTrigger:= ExtFml("TradeSim.TrailingStop",Trigger,long, 3*ATR(15),H,C)
OR C<=Ref(ExtFml("TradeSim.TrailingStop",band,long,0,LLV(L,6),C),-1);
LongExitPrice := O;
I’m assuming this code is correct as I have not picked up any errors, but your expert eye my pick up something I am unaware of?
2. The real problem is I wish to convert this code to intra day exits based on the low rather than the close. The tricky bit for me is the code needs to allow for gap downs and where this occurs the exit is the open on the next day.
Any ideas?
Regards Graeme :?
Re: Intra day exits
Could you please consider the following?
1. End of day exits- If either condition is met then exit on the open of the next day - I have delayed bars ExtFml set.
LongExitTrigger:= ExtFml("TradeSim.TrailingStop",Trigger,long, 3*ATR(15),H,C)
OR C<=Ref(ExtFml("TradeSim.TrailingStop",band,long,0,LLV(L,6),C),-1);
LongExitPrice := O;
I’m assuming this code is correct as I have not picked up any errors, but your expert eye my pick up something I am unaware of?
2. The real problem is I wish to convert this code to intra day exits based on the low rather than the close. The tricky bit for me is the code needs to allow for gap downs and where this occurs the exit is the open on the next day.
Any ideas?
Regards Graeme :?