W&R 叠加K线 高地价 21 K线显示
KPJ:=OPEN; SPJ:=CLOSE; ZGJ:=HIGH; ZDJ:=LOW;
YR:=KPJ/KPJ; ZZQ:=SUM(YR,0);
ZGz:=HHV(ZGJ,高低价); ZDz:=LLV(ZDJ,高低价); GDbfb:=(ZGz-ZDz)/100;
WR:(SPJ-ZDz)/GDbfb,LINETHICK2;
KPJb:=(KPJ-ZDz)/GDbfb;
ZGJb:=(ZGJ-ZDz)/GDbfb;
ZDJb:=(ZDJ-ZDz)/GDbfb;
HKXtj:=SPJ>=KPJ; LKXtj:=1-HKXtj;
HKX:=HKXtj*K线显示; LKX:=LKXtj*K线显示;
STICKLINE(HKX,ZGJB,ZDJB,0,0),COLOR5555FF;
STICKLINE(HKX,KPJB, WR,6,0),COLOR5555FF;
STICKLINE(LKX,ZGJB,ZDJB,0,0),COLORFFFF00;
STICKLINE(LKX,KPJB, WR,6,0),COLORFFFF00;