REFLINE: 0, 20, 50, 80, 100;
RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;
K:SMA(RSV,M1,1);
D:SMA(K,M2,1),dotline;
T2:=BARSLAST(CROSS(D,K));
CON_A:=CROSS(K,D) AND BARSLAST(CROSS(D,K))<5 ;
CON_B:=BACKSET(FILTER(CON_A,5),6);
CON_C:=BACKSET(FILTER(CON_A,5),1);
FILLRGN(K,D,CON_B AND NOT(CON_C) AND D>K,RGB(255,0,O) ); |