PureBytes Links
Trading Reference Links
|
To solve view distortion, try this:
atrs := 4;atrmult:= 0.25;
longentry:= Cross(C,Mov(C,40,E));
stopl:=If(BarsSince(longentry)=0,L-ATR(atrs)*atrmult,If(L>Ref(L,-1),PREV+(L-Ref(L,-1)),If(PREV>(1.1*H),(1.1*H),PREV)));
stopl;
Anthony Chia
PS: Not sure if this trailing stop is good.
metarockx <k_rock@xxxxxxxx> wrote:
hi everybodyI have designed a close trailing stop for short term systems.The logic is to start with an ATR multiple subtracted from the low on the first day of the trade and on the following days to rise the stop by the difference of the respective lows, yet in such a way that the stop for the long position can never be lower than the previous stop value.(entry is only a simple example) atrs := 4;atrmult:= 0.25;longentry:= Cross(C,MOV(C,30,S));stopl:=If(BarsSince(longentry)=0,L-ATR(atrs)*atrmult,If(L>Ref(L,-1),PREV+(L-Ref(L,-1)),PREV));stopl;I'd like to plot this as an indicator in the chart window. My problem is that during the "flat" periods the stop grows higher and higher and so it distorts the chart view.Anybody got an idea how to avoid that?Thanks so
muchmetarockxTo unsubscribe from this group, send an email to:Metastockusers-unsubscribe@xxxxxxxxxxxYour use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
Yahoo! Groups Sponsor
ADVERTISEMENT
To unsubscribe from this group, send an email to:
Metastockusers-unsubscribe@xxxxxxxxxxx
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
|