Well, thank you all. I finally managed to get it to work.

Here is the formula for anyone interested .....

Anthony

// WR4 show me //----------------------------------------


D1 = H-L;
D2 = Ref(D1,-1);
D3 = Ref(D1,-2);
D4 = Ref(D1,-3);


WR4 = 0;

WR4 = (H - L) > Ref(HHV(H-L,3),-1);


PlotShapes( IIf( WR4 == 1 , shapeSmallSquare, shapeNone ), colorYellow, 0, H * 1.03);


Filter = 1;


AddColumn( D1, "D1", 2.5 );
AddColumn( D2, "D2", 2.5 );
AddColumn( D3, "D3", 2.5 );
AddColumn( D4, "D4", 2.5 );
AddColumn( WR4, "WR4", 1 );





._,___

<<inline: WR4.png>>

Reply via email to