通达信持仓彩条指标公式
2021/4/13 17:55:51
JJ:=(HIGH+LOW+CLOSE)/3,NODRAW;
QJ0:=AMOUNT/IF(HIGH=LOW,4,HIGH-LOW),NODRAW;
TD1:=QJ0*(MIN(OPEN,CLOSE)-LOW),NODRAW;
DD1:=QJ0*(JJ-MIN(CLOSE,OPEN)),NODRAW;
DD2:=QJ0*(HIGH-MAX(OPEN,CLOSE)),NODRAW;
TD2:=QJ0*(MAX(CLOSE,OPEN)-JJ),NODRAW;
TD:=TD1-TD2,NODRAW;
DA:=DD1-DD2,NODRAW;
XD1:=1-(TD1+DD1),NODRAW;
XD2:=1-(TD2+DD2),NODRAW;
TZ:=V/SUM(V,60)*100,NODRAW;
DT:=((XD1-XD2)/1000000)/TZ,NODRAW;
散户持仓:SUM(DT,220),COLOR888888,LINETHICK1,NODRAW;
DX:=((TD1+DD1)-(TD2+DD2))/1000000,NODRAW;
主力持仓:SUM(DX,600),COLORWHITE,LINETHICK1,NODRAW;
DRAWRECTREL(400,0,635,320,RGB(0,100,0));
DRAWRECTREL(470,0,550,320,RGB(0,200,50));
DRAWRECTREL(470,0,470+CONST(主力持仓*150/400),320,RGB(150,10,0));
DRAWTEXT_FIX(1,0.42,0.020,0,STRCAT(STRCAT('主力持仓: ',CON2STR(主力持仓,2)),'')),COLORYELLOW;
DRAWRECTREL(400,460,635,750,RGB(0,50,160));
DRAWRECTREL(470,460,550,750,RGB(0,200,50));
DRAWRECTREL(470,460,470+CONST(散户持仓*140/400),750,RGB(150,10,0));
DRAWTEXT_FIX(1,0.42,0.43,0,STRCAT(STRCAT('散户持仓: ',CON2STR(散户持仓,2)),'')),COLORYELLOW;
看股吧公 式 www.kanguba.co m
[源码翻译]通达信公式动态翻译显示
JJ赋值:(最高价+最低价+收盘价)/3,NODRAW
QJ0赋值:成交额(元)/如果最高价=最低价,返回4,否则返回最高价-最低价,NODRAW
TD1赋值:QJ0*(开盘价和收盘价的较小值-最低价),NODRAW
DD1赋值:QJ0*(JJ-收盘价和开盘价的较小值),NODRAW
DD2赋值:QJ0*(最高价-开盘价和收盘价的较大值),NODRAW
TD2赋值:QJ0*(收盘价和开盘价的较大值-JJ),NODRAW
TD赋值:TD1-TD2,NODRAW
DA赋值:DD1-DD2,NODRAW
XD1赋值:1-(TD1+DD1),NODRAW
XD2赋值:1-(TD2+DD2),NODRAW
TZ赋值:成交量(手)/成交量(手)的60日累和*100,NODRAW
DT赋值:((XD1-XD2)/1000000)/TZ,NODRAW
输出散户持仓:DT的220日累和,COLOR888888,线宽为1,NODRAW
DX赋值:((TD1+DD1)-(TD2+DD2))/1000000,NODRAW
输出主力持仓:DX的600日累和,画白色,线宽为1,NODRAW
相对位置上画矩形
相对位置上画矩形
相对位置上画矩形
当满足条件1时,在横轴0.42纵轴0.020位置书写文字,画黄色
相对位置上画矩形
相对位置上画矩形
相对位置上画矩形
当满足条件1时,在横轴0.42纵轴0.43位置书写文字,画黄色
其它股票公式列表