I see you haven't added the envelopes this time. This is the additional formula for the Exit in WOW's language:
and (mov(Close,20,S)+std(Close,20,2))>(mov(c,89,s)+(.062*(mov(c,89,s))))
It's designed to prevent frequent sell signals when the bands are relatively narrow. It just specifies that the bands must be above an 89-day moving average of the upper envelope line (with a vertical shift of 6.2 percent).
I've changed your 89-day moving averages to 20, so that the Metastock formula (without the envelope line) is now this:
Enter long: when(C,>,fml(#2)) AND when(ref(C,-3),<,ref(fml(#2),-3)) Exit long: when(C,<,fml(#1)) AND when(ref(C,-3),>,ref(fml(#1),-3)) AND when(fml(#139),<,70) AND when(ref(fml(#139),-3),>,70)
Bollinger upper 20, fml(#1): mov(C,20,S)+2*std(C,20) Bollinger lower 20, fml(#2): mov(C,20,S)-2*std(C,20)
StochRSI(14), fml(#139): (mov((rsi(14)-llv(rsi(14),14))/hhv(rsi(14),14)-(llv(rsi(14),14)),14,E)*100)
Now I just need to translate that envelope formula. You did have it with the IF formula, somewhere in here:
if(C,<,fml(#1), if(ref(C,-1),>,ref(fml(#2),-1), if(mov(C,20,S)+2*std(C,20), >,1.06*mov(C,89,S),-1,1),1) ,1)
I posted the changes to the Metastock formula (so far without the envelope line) at my Bollinger system page:
members.aol.com |