点石成金。自动寻找屏幕显示K线的高点和低点。
x:=BARPOS-SYSPARAM(2);
nl:=LLVBARS(l,x);
nh:=hhVBARS(h,x);
加权支撑线:SUM(low*vol,nl+1)/SUM(VOL,nl+1),POINTDOT,COLORMAGENTA,LINETHICK2;
简易支撑线:ma(low,nl+1),CIRCLEDOT,colorred;
加权压力突破线:SUM(high*vol,nh+1)/SUM(VOL,nh+1),POINTDOT,COLORGREEN,LINETHICK2;
简易压力突破线:ma(high,nh+1),CIRCLEDOT,colorblue;
KC1:REF(加权压力突破线,nl);
KC2:REF(简易压力突破线,nl);
|