主力吃货【副图指标】
{主力吃货【副图指标】}
背景色:DRAWGBK(C>0, RGB(0,0,0),RGB(0,0,5'该数值可以调整'),0,0,0);{浅色背景};
V1:=(C*2+H+L)/4*100;
V2:=EMA(V1,13)-EMA(V1,34);
V3:=EMA(V2,5);
V4:2*(V2-V3)*5.5,COLORBLACK;
超大主力吃货:IF(V4>=0,V4,0),COLOR7F00FF,LINETHICK1;
超大主力吐货:IF(V4<=0,V4,0),COLOR66FF00,LINETHICK1;
V5:=(HHV(INDEXH,8)-INDEXC)/(HHV(INDEXH,8)-LLV(INDEXL,8))*8;
V6:=EMA(3*V5-2*SMA(V5,18,1),5);
V7:=(INDEXC-LLV(INDEXL,8))/(HHV(INDEXH,8)-LLV(INDEXL,8))*10;
V8:=(INDEXC*2+INDEXH+INDEXL)/4;
V9:=EMA(V8,13)-EMA(V8,34);
VA:=EMA(V9,3);
VB:=(V9-VA)/2;
多头1:DRAWICON(CROSS(REF(V4,0),0),0-0.01,41);
多头2:DRAWICON(LONGCROSS(REF(V4,0),REF(V4,1),2)AND V4<(-1),V4-0.01,42);
提示1:DRAWTEXT_FIX(C!=0,0.01,0.05,0,' 绿线拐头向上_轻仓进。红线拐头向上_可重仓。红线在高位,上行速度变缓或拐头向下_只管抛。'),COLORRED;
提示2:DRAWTEXT_FIX(C!=0,0.01,0.12,0,' 0 轴之上伺机做多,0 轴之下注意防空。可将《投机指标》共振作为参考。 '),COLORLICYAN;
提示3:DRAWTEXT_FIX(C!=0,0.01,0.19,0,' 买卖点可参考主图《宝塔K线》(三平底进,三平顶出。)和副图《投机指标》(红区共振做多,白区不做,休息。)。'),COLORFF9900;
成交额_万元:AMOUNT/10000,NODRAW,COLORYELLOW; {单位:万元};
VAR1:=(CLOSE*2+HIGH+LOW)/4;
VAR2:=EMA(VAR1,13)-EMA(VAR1,34)COLORWHITE,DOTLINE;
VAR3:=EMA(VAR2,5);
主力控盘_做多:=2*(VAR2-VAR3)*3.8,DOTLINE,COLORRED,NODRAW;
主力弃盘_做空:=(-2)*(VAR2-VAR3)*3.8,DOTLINE,COLORYELLOW,NODRAW;
主力上穿:=DRAWICON(CROSS(REF(主力控盘_做多,0),REF(主力弃盘_做空,0)),0,42);
主力控盘2:=DRAWICON(CROSS(REF(主力控盘_做多,0),REF(主力弃盘_做空,0)),0,34);
主力弃盘2:=DRAWICON(CROSS(REF(主力弃盘_做空,0),REF(主力控盘_做多,0)),0,35);
{绝佳买卖【副图指标】}
Q_1:=C-REF(C,1);
Q_2:=100*EMA(EMA(Q_1,6),6)/EMA(EMA(ABS(Q_1),6),6);
Q_3:=CROSS(EMA(C,19),EMA(C,7));
Q_4:=CROSS(EMA(C,7),EMA(C,19));
Z1:=L=LLV(L,BARSLAST(Q_3)+1);
Z2:=LLV(L,BARSLAST(Q_3)+1);
Z3:=H=HHV(H,BARSLAST(Q_4)+1);
Z4:=HHV(H,BARSLAST(Q_4)+1);
Q_A:=DRAWLINE(Z1,Z2,Z3,Z4,0),COLORMAGENTA,LINETHICK2;
Y1:=H=HHV(H,BARSLAST(Q_4)+1);
Y2:=HHV(H,BARSLAST(Q_4)+1);
Y3:=L=LLV(L,BARSLAST(Q_3)+1);
Y4:=LLV(L,BARSLAST(Q_3)+1);
Q_B:=DRAWLINE(Y1,Y2,Y3,Y4,0),COLORCYAN,LINETHICK2;
X01:=LLV(Q_2,2)=LLV(Q_2,7);
X2:=COUNT(Q_2<0,2);
X3:=CROSS(Q_2,MA(Q_2,2));
X4:=REF(Q_B,1)<REF(Q_B,2);
X5:=Q_A>REF(Q_B,1);
买进:=(X01 AND X2 AND X3) AND X4 AND X5;
TJ0:=IF(Q_A<REF(Q_A,1) AND Q_B=Q_A,1,0);
TJ1:=IF(Q_B<REF(Q_B,1) AND Q_B=Q_A,1,0);
持股:=IF(Q_B<REF(Q_B,1) AND Q_B<Q_A,23,0),COLOR000088;
持币:=STICKLINE(Q_B<REF(Q_B,1),0,35,2,0)COLOR006600;
堪称卖绝:=IF(REF(TJ0,1)=0 AND TJ0>=1,0.2,0),STICK,COLORCYAN,LINETHICK5;
堪称卖绝标识:DRAWICON(REF(TJ0,1)=0 AND TJ0>=1,-0.1,35);
买一绝:=IF(REF(TJ1,1)=0 AND TJ1>=1,0.5,0),STICK,COLORRED,LINETHICK1;
买一绝标识:DRAWICON(REF(TJ1,1)=0 AND TJ1>=1,-0.1,34);
多:=STICKLINE(持股,0.05,0.25,2,0)COLORRED;
空:=STICKLINE(持币,0.05,0.25,2,0)COLORFFFFE0;
E:DRAWLINE(持币,0,持股,0,0)COLORRED,LINETHICK2;
D:DRAWLINE(持股,0,持币,0,0)COLORGREEN,LINETHICK2;
卖标识:DRAWICON(REF(TJ0,1)=0 AND TJ0>=1,-0.1,35);
买标识:DRAWICON(REF(TJ1,1)=0 AND TJ1>=1,-0.1,34);