Chris,
I intended for that post to infer this.
Cross(C,Ref(Mov(C,89,TSF),-8)) is an example of price crossing above the 89TSF MA with 8 day horizontal right shift.
Cross(C,Ref(Mov(C,89,TSF),8)) for left shift, but of little value in explorations for obvious reasons.
Vertical shifts are accomplished by adding or subtracting some value from the indicator as in this upper bollinger band code:
mov( C,20,S ) + ( 2 * ( std( C,20 ) ) )
A simple left shift weekly doubler system test:
Buy: C<Ref(C,5)*.5
Sell: C=Ref(HHV(C,5),5)
:>) |