longshorts
2nd October 2004, 12:13 PM
Hi,
I'm a first time poster and am running a trial copy.
Can the TrailingStop function be used to implement a previous low stop strategy, or is it only for volatility type stops?
I want to do for eg, exit if closing price goes below lowest low value in last 3 days not including today. My experiments with the function have all resulted in the trailing stop being ignored.
eg
stop:= llv(l,3);
BandLong:= if(c<prev,stop,if(stop>PREV,stop,PREV));
LongExitTrigger:= ExtFml("TradeSim.TrailingStop",trigger,long,BandLong,l,c);
LongExitPrice:= OPEN;
When I just code this idea into the exit trigger instead of using the trailing stop function
eg
LongExitTrigger:= c<ref(llv(l,3),-1);
I think that would allow the stop to go down as well as up or am I wrong about this?
So basically what I am looking for is a way to have my trailing stop based on previous lows, to only be allowed to go up, and ideally not to be considered until the stop goes above the original buy price.
Many Thanks,
Longshorts.
I'm a first time poster and am running a trial copy.
Can the TrailingStop function be used to implement a previous low stop strategy, or is it only for volatility type stops?
I want to do for eg, exit if closing price goes below lowest low value in last 3 days not including today. My experiments with the function have all resulted in the trailing stop being ignored.
eg
stop:= llv(l,3);
BandLong:= if(c<prev,stop,if(stop>PREV,stop,PREV));
LongExitTrigger:= ExtFml("TradeSim.TrailingStop",trigger,long,BandLong,l,c);
LongExitPrice:= OPEN;
When I just code this idea into the exit trigger instead of using the trailing stop function
eg
LongExitTrigger:= c<ref(llv(l,3),-1);
I think that would allow the stop to go down as well as up or am I wrong about this?
So basically what I am looking for is a way to have my trailing stop based on previous lows, to only be allowed to go up, and ideally not to be considered until the stop goes above the original buy price.
Many Thanks,
Longshorts.