通达信主力多空副图指标
VAR1:=(CLOSE*2+HIGH+LOW)/4;
VAR2:=EMA(VAR1,13)-EMA(VAR1,34);
VAR3:=EMA(VAR2,5);
中轴:0,COLORWHITE,POINTDOT;
主力做多:2*(VAR2-VAR3)*3.8,LINETHICK1,COLORRED;
主力做空:(-2)*(VAR2-VAR3)*3.8,LINETHICK1,COLORGREEN;
波线:=SMA(主力做多,50,5),LINETHICK2,COLORFFFF00;
STICKLINE(REF(主力做空,2)<主力做空,主力做空,REF(主力做空,2),5,1),COLOR898989;
STICKLINE(REF(主力做多,1)<主力做多,主力做多,REF(主力做多,1),5,1),COLOR0000FF;
TJ1:=VOL>=HHV(VOL,20);
TJ2:=VOL/REF(VOL,1)>=2;
TJ3:=TJ1 AND TJ2;
TJ4:=C/O>1.02 AND C>REF(C,1);
量价配合选股:IF(TJ3 AND TJ4,0.5,0),STICK,LINETHICK3,COLORFF00FF;
LC:=REF(CLOSE,1);
RSI5:=((SMA(MAX((CLOSE - LC),0),5,1) / SMA(ABS((CLOSE - LC)),5,1)) * 100);
TR1:=SUM(MAX(MAX((HIGH - LOW),ABS((HIGH - REF(CLOSE,1)))),ABS((LOW - REF(CLOSE,1)))),10);
HD:=(HIGH - REF(HIGH,1));
LD:=(REF(LOW,1) - LOW);
DMP:=SUM(IF(((HD > 0) AND (HD > LD)),HD,0),10);
DMM:=SUM(IF(((LD > 0) AND (LD > HD)),LD,0),10);
PDI:=((DMP * 100) / TR1);
MDI:=((DMM * 100) / TR1);
ADX:=MA(((ABS((MDI - PDI)) / (MDI + PDI)) * 100),5);
AV:=(RSI5 + ADX);
DXR:=(((ADX + REF(ADX,5)) / 2) + RSI5);
WR10:=((100 * (HHV(HIGH,10) - CLOSE)) / (HHV(HIGH,10) - LLV(LOW,10)));
NEWVOL:=(RSI5 - WR10);
天之:=(AV + NEWVOL);
天天选股:IF(CROSS(天之,0),0.5,0),COLORFFFFFF;