大智慧缺口标注主图指标公式

{高低标注}

{参数N: 15,5,30}

ddd:=zig(4,n );

DRAWTEXT(h=ddd ,h*1.02 ,'高='+ddd),ColorD3A9FF;

DRAWTEXT(l=ddd ,l ,'低='+ddd);

{缺口}

stickline(L>REF(H,1),L,REF(H,1),50,1001),colorred;

DRAWTEXT(L>REF(H,1),REF(H,1),NUMTOSTRN(REF(H,1),2)+'-'+NUMTOSTRN(L,2)),COLORMAGENTA;

stickline(REF(L,1)>H,ref(L,1),H,50,1001),colorgreen;

DRAWTEXT(REF(L,1)>H,REF(L,1),NUMTOSTRN(ref(l,1),2)+'-'+NUMTOSTRN(h,2)),COLORBLUE;