水手突破指标公式源码
N:=19;
VAR1:=HHV(HIGH,N);
VAR2:=LLV(LOW,N);
阻力线:EMA((CLOSE-VAR2)/(VAR1-VAR2),21)-0.5,COLORF0F000,LINETHICK2;
操作线:EMA((CLOSE-VAR2)/(VAR1-VAR2),5)-0.5,colorred,LINETHICK2;
DRAWTEXT(CROSS(操作线,阻力线) AND 阻力线0.25,阻力线,''),colorgreen;
红绿棒:(操作线-阻力线),COLORSTICK;
DRAWTEXT(CROSS(操作线,阻力线),操作线,'始');
DRAWTEXT(CROSS(阻力线,操作线),阻力线,'终');
TIPTEXT(ISNULL(REFX(CLOSE,1)),0,' '),colorred;
TIPTEXT(ISNULL(REF(CLOSE,1)),0,'');