通达信,支撑位,主图,无未来,指标公式
N:=13;
M:=55;
P:=3;
RSV1:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;
RSV2:=(CLOSE-LLV(LOW,M))/(HHV(HIGH,M)-LLV(LOW,M))*100;
J1:=3*SMA(RSV1,P,1)-2*SMA(SMA(RSV1,P,1),P,1);
J2:=3*SMA(RSV2,P,1)-2*SMA(SMA(RSV2,P,1),P,1);
支撑位:IF(CROSS(J1,J2),LOW,REF(LOW,BARSLAST(CROSS(J1,J2)))),POINTDOT;
STICKLINE( CROSS(J1,J2),LOW,REF(LOW,BARSLAST(CROSS(J1,J2))),9,0),COLORRED;
压力位:IF(CROSS(J2,J1),HIGH,REF(HIGH,BARSLAST(CROSS(J2,J1)))),POINTDOT;
STICKLINE( CROSS(J2,J1),HIGH,REF(HIGH,BARSLAST(CROSS(J2,J1))),9,0),COLORGREEN;