同花顺支撑压力公式
源码
H1:=MAX(DYNAINFO(3),DYNAINFO(5));
L1:=MIN(DYNAINFO(3),DYNAINFO(6));P1:=H1-L1;
当前阻力:L1+P1*7/8,COLOR00DD00;
当前支撑:L1+P1*0.5/8,colorred;
现价:CLOSE,colorwhite,LINETHICK1;
STICKLINE(CROSS(当前支撑,现价),当前支撑,(当前支撑+当前阻力)/2,2,0),colorred;
STICKLINE(CROSS(现价,当前阻力),当前阻力,(当前支撑+当前阻力)/2,2,0),colorgreen;
DRAWTEXT(LONGCROSS(当前支撑,现价,2),当前支撑*1.001,'★吸'),coloryellow;
DRAWTEXT(LONGCROSS(现价,当前阻力,2),现价,'★抛'),colorred;