一、茶舍资金流
jj:=(HIGH+LOW+CLOSE)/3;qj0:=AMOUNT/IF(HIGH=LOW,4,HIGH-LOW);
TD1:=qj0*(MIN(OPEN,CLOSE)-LOW);
XD1:=qj0*(jj-MIN(CLOSE,OPEN));
XD2:=qj0*(HIGH-MAX(OPEN,CLOSE));
TD2:=qj0*(MAX(CLOSE,OPEN)-jj);
日净额:((TD1+XD1)-(TD2+XD2))/10000,PRECISION2,linethick;
周净额:sum(日净额,5),PRECISION2,linethick;
月净额:sum(日净额,22),PRECISION2,linethick;
FILLRGN(周净额>0,0,周净额),COLOR000066;
FILLRGN(周净额<0,0,周净额),COLOR003300;
stickline(日净额>0,0,日净额,6,0),color0000aa;
stickline(日净额>0,0,日净额,3,0),color0000cc;
stickline(日净额>0,0,日净额,1,0),color0000ff;
stickline(日净额<0,日净额,0,6,0),color00aa00;
stickline(日净额<0,日净额,0,3,0),color00cc00;
stickline(日净额<0,日净额,0,1,0),color00ff00;
DRAWTEXTEx(c,1,0,0,"茶舍资金流(万元)"),COLORYELLOW;
DRAWTEXTEX(CLOSE,1,0,150,"证券代码: "+STKLABEL+" 证券名称: "+STKNAME+""),ColorFFAA00;
//
公式文件:
茶舍资金流.ALG (1.64 KB)
茶舍资金流.ALG (1.64 KB)
下载次数: 375
-4-30 15:27
二、茶舍主力线
jj:=(HIGH+LOW+CLOSE)/3;qj0:=AMOUNT/IF(HIGH=LOW,4,HIGH-LOW);
买1:=qj0*(MIN(OPEN,CLOSE)-LOW);
买2:=qj0*(jj-MIN(CLOSE,OPEN));
卖1:=qj0*(MAX(CLOSE,OPEN)-jj);
卖2:=qj0*(HIGH-MAX(OPEN,CLOSE));
DT:=((买1+买2)-(卖1+卖2))/10000;
主力持仓线:sum(DT,66),COLOR888888,linethick2;
STICKLINE(DT>0,主力持仓线,主力持仓线+DT,2,0),COLOR0000FF;
STICKLine(DT<0,主力持仓线+DT,主力持仓线,2,0),COLOR00FF00;
DRAWTEXTEX(DT>0,0,150,0,"主力增:"+NUMTOSTR(DT,2)+" 万元"),COLOR00FFFF;
dRAWTEXTEX(DT<0,0,150,0,"主力减:"+NUMTOSTR(DT,2)+" 万元"),COLOR00FF00;
DRAWTEXT(ISLASTBAR,主力持仓线,"主\n力\n线 ");
DRAWTEXTEX(c,1,0,0,"茶舍主力持仓线 "),COLORYELLOW;
DRAWTEXTEX(CLOSE,1,0,150,"证券代码: "+STKLABEL+" 证券名称: "+STKNAME+""),ColorFFAA00;
//
公式文件:
茶舍主力线.ALG (1.45 KB)
茶舍主力线.ALG (1.45 KB)
下载次数: 280
-4-30 15:27
三、茶舍散户线
jj:=(HIGH+LOW+CLOSE)/3;qj0:=AMOUNT/IF(HIGH=LOW,4,HIGH-LOW);
TD1:=qj0*(MIN(OPEN,CLOSE)-LOW);DD1:=qj0*(jj-MIN(CLOSE,OPEN));
DD2:=qj0*(HIGH-MAX(OPEN,CLOSE));TD2:=qj0*(MAX(CLOSE,OPEN)-jj);
td:=TD1-TD2;da:=DD1-DD2;xd1:=1-(TD1+DD1);xd2:=1-(TD2+DD2);
tz:=v/sum(v,60)*100;DT:=((xd1-xd2)/10000)/tz;
散户持仓线:sum(DT,22),COLOR888888,LINETHICK2;
STICKLINE(DT>0,散户持仓线,散户持仓线+DT,2,0),COLORFF00FF;
STICKLine(DT<0,散户持仓线+DT,散户持仓线,2,0),COLORFF8800;
DRAWTEXT(ISLASTBAR,散户持仓线,"散\n户\n线 ");
DRAWTEXTEX(DT>0,0,150,0,"散户增:"+NUMTOSTR(DT,2)+" 万元"),COLOR00FFFF;
dRAWTEXTEX(DT<0,0,150,0,"散户减:"+NUMTOSTR(DT,2)+" 万元"),COLOR00FF00;
DRAWTEXTEx(c,1,0,0,"茶舍散户持仓线"),COLORYELLOW;
DRAWTEXTEX(CLOSE,1,0,150,"证券代码: "+STKLABEL+" 证券名称: "+STKNAME+""),ColorFFAA00;
//