缺口标注 (大智慧L2行情使用 源码 )介绍
缺口标注 (大智慧L2行情使用 源码 )
源码:
{高低标注}
{参数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;
附图:
gd16157