3、切换至2日分时图,能够显示前一日分时最高量;
{通达信分时主图用}
ZSR:=DYNAINFO( 3);{前收盘价 即时行情数据}
GDK:=(SMA(C,2,1)-SMA(C,6,1))*2.1;
DRAWTEXT_FIX(1,0.13.06,0,0,'所属行业:')COLOR0080FF;
DRAWTEXT_FIX(1,0.19.12,0,0,HYBLOCK)COLOR0080FF;
DRAWTEXT_FIX(1,0.28,0,0,'所属板块:')COLOR00FFFF;
DRAWTEXT_FIX(1,0.34,0,0,GNBLOCK)COLOR00FFFF;
H1:DYNAINFO(5),COLORDDAADD,LINETHICK1,COLORMAGENTA;{最高}
L1:DYNAINFO(6),COLOR888800,LINETHICK1,COLORGREEN;{最低};
{分析家公式网70822.COM}
T:=(TIME2<=100000);
HH:=HHV(C*T,0);
LL:=LLV(C*T,0);
T2:=C=HH AND T;
T4:=C=LL&&T;
T3:=CROSS(SUM(T2,0)=CONST(SUM(T2,0)),0.5);
T5:=CROSS(SUM(T4,0)=CONST(SUM(T4,0)),0.5);
线:REF(C,BARSLAST(T3)),COLORBLUE,DOTLINE;
REF(C,BARSLAST(T5)),COLORLIBLUE,DOTLINE;
日前最高量:=FINDHIGH(V,FROMOPEN,240,1)COLORCYAN,NODRAW;
竞价量:=DYNAINFO(15)/O/100;
今昨竞价比:=IF(BARSCOUNT(V)>=240,竞价量/日前最高量,DRAWNULL),NODRAW;
DRAWTEXT_FIX(1,0,1.2,0,STRCAT(STRCAT('【今昨竞价比】 ',CON2STR(今昨竞价比,2)),'')),COLORRED;
DRAWTEXT_FIX(1,0,0.9,0,STRCAT(STRCAT('【昨日最高量】 ',CON2STR(日前最高量,2)),'')),COLORCYAN;
20203173372757091.jpg