通达信虚拟涨幅价格主图指标公式

2023-12-25 02:00发布

XK:=30;显示:=0;{虚拟}HH:=IF(BETWEEN(DATE,1150601,1150630),H,-999);T:=HHVBARS(HH,0);TT:=BARSLAST(L=LLV(L,T+1));T1:=BARSLAST(CURRBARSCOUNT=CONST(TT)+1);XL:=REFX(MIN(C,O),BARSNEXT(T1=0));DRAWICON(MIN(C,O)=XL,L,1);ZTKX:=IF(ISLASTBAR,REF(XL,T)*(1+XK/100),DRAWNULL),NODRAW;STICKLINE(ISLASTBAR,ZTKX,MAX(OPEN,CLOSE),0,-1),COLORLIGRAY;ZF:=(CONST(ZTKX)/REF(XL,T)-1)*100;{涨幅}JG:=REF(XL,T)*(1+XK/100);DRAWTEXT(CURRBARSCOUNT=4,JG,VARCAT(VARCAT('价格:',VAR2STR(CONST(ZTKX),2)),'元')),COLORLIRED;DRAWTEXT(CURRBARSCOUNT=10,
 解锁全文需 1  财富值,免费注册即送20财富值!