【资料名称】:经典公式《分类持仓》《主力进出》源码放出(分时主图 主图 通达信 贴图 )介绍【资料描述】:
经典公式《分类持仓》《主力进出》源码放出(分时主图 主图 通达信 贴图 )
资金,股票上涨的动力,如何编译一个真正具有指导意义的指标,并把他们显示在主要位置,帮助分析,扩大视野,运用得当,是值得深入研究的。
两个经典的指标《分类持仓》《主力进出》,因方法不同、观点不一,里面的参数请根据自己的情况调整。供大家参考。
分时图叠加分类持仓
M0:=成交量.净流入#DAY;
M1:=成交量.超大单#DAY;
M2:=成交量.大单#DAY;
M3:=成交量.中单#DAY;
M4:=成交量.小单#DAY;
MAXV:=成交量.DAZHI#DAY;
DRAWRECTREL(1000,CONST(950-(ABS(M4)*500/MAXV)),960,970,IF(CONST(M4)>0,RGB(100,0,0),RGB(0,50,0)));
DRAWRECTREL(955,CONST(950-(ABS(M3)*500/MAXV)),915,970,IF(CONST(M3)>0,RGB(100,0,0),RGB(0,50,0)));
DRAWRECTREL(910,CONST(950-(ABS(M2)*500/MAXV)),870,970,IF(CONST(M2)>0,RGB(100,0,0),RGB(0,50,0)));
DRAWRECTREL(865,CONST(950-(ABS(M1)*500/MAXV)),825,970,IF(CONST(M1)>0,RGB(100,0,0),RGB(0,50,0)));
DRAWRECTREL(820,CONST(950-(ABS(M0)*500/MAXV)),780,970,IF(CONST(M0)>0,RGB(120,0,120),RGB(0,100,100)));
DRAWTEXT_FIX(CURRBARSCOUNT=1,0.974,1,0,'散户'),COLORYELLOW;
DRAWTEXT_FIX(CURRBARSCOUNT=1,0.928,1,0,'中户'),COLORYELLOW;
DRAWTEXT_FIX(CURRBARSCOUNT=1,0.882,1,0,'大户'),COLORYELLOW;
DRAWTEXT_FIX(CURRBARSCOUNT=1,0.833,1,0,'超大单'),COLORYELLOW;
DRAWTEXT_FIX(CURRBARSCOUNT=1,0.789,1,0,'净流入'),COLORRED;
DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.789,0.95,0,INTPART(M0)),COLORWHITE;
DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.834,0.95,0,INTPART(M1)),COLORWHITE;
DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.882,0.95,0,INTPART(M2)),COLORWHITE;
DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.926,0.95,0,INTPART(M3)),COLORWHITE;
DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.972,0.95,0,INTPART(M4)),COLORWHITE;
DRAWTEXT_FIX(CURRBARSCOUNT=1,0.726,0.95,0,'今日分类持仓'),COLORYELLOW;
DRAWTEXT_FIX(CURRBARSCOUNT=1,0.728,1,0,'单位(万元)'),COLORYELLOW;
主图叠加主力进出
超B:=L2_AMO(0,2)/10000.0;
大B:=L2_AMO(1,2)/10000.0;
中B:=L2_AMO(2,2)/10000.0;
小B:=L2_AMO(3,2)/10000.0;
超S:=L2_AMO(0,3)/10000.0;
大S:=L2_AMO(1,3)/10000.0;
中S:=L2_AMO(2,3)/10000.0;
小S:=L2_AMO(3,3)/10000.0;
TESTSKIP(NOT(超B OR 大B OR 中B OR 小B OR 超S OR 大S OR 中S OR 小S)!=0);
大宗进:=(超B)+(大B),NODRAW;
大宗出:=(超S)+(大S),NODRAW;
非大宗进:=(中B)+(小B),NODRAW;
非大宗出:=(中S)+(小S),NODRAW;
DAZHIV:=CONST(MAX(ABS(大宗进),MAX(ABS(大宗出),MAX(ABS(非大宗进),ABS(非大宗出))))),NODRAW;
DRAWRECTREL(0,CONST(950-(ABS(大宗进)*250/DAZHIV)),30,970,IF(CONST(大宗进>0),RGB(255,0,0),RGB(23,125,255)));
DRAWRECTREL(32,CONST(950-(ABS(大宗出)*250/DAZHIV)),62,970,IF(CONST(大宗出>0),RGB(23,125,255),RGB(255,0,0)));
DRAWRECTREL(92,CONST(950-(ABS(非大宗进)*250/DAZHIV)),122,970,IF(CONST(非大宗进>0),RGB(255,0,0),RGB(23,125,255)));
DRAWRECTREL(124,CONST(950-(ABS(非大宗出)*250/DAZHIV)),154,970,IF(CONST(非大宗出>0),RGB(23,125,255),RGB(255,0,0)));
DRAWTEXT_FIX(CURRBARSCOUNT=1,0.015,1,0,'主力进出'),COLORMAGENTA;
DRAWTEXT_FIX(CURRBARSCOUNT=1,0.107,1,0,'散户进出'),COLORCYAN;
gd43325
【下载地址隐藏】: 点:回复可见地址