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);
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;