VAR1:=REF(MA(CLOSE,27),9);
开:=OPEN-VAR1;
高:=HIGH-VAR1;
低:=LOW-VAR1;
收:=CLOSE-VAR1;
AA:=EMA((0.8*收+0.5*开+0.3*高+0.3*低)/(0.8+0.5+0.6),9);
游资动向:EMA(AA,3),LINETHICK1,color5D5D5D;
BB:=EMA((0.8*收+0.5*开+0.3*高+0.3*低)/(0.8+0.5+0.6),18);
市场趋势:EMA(BB,18),LINETHICK1,colorFFFF00;
牛熊分界:0,POINTDOT,LINETHICK1,color80FF;
MID:=MA(CLOSE,18);
UPPER:=MID+2*STD(CLOSE,18);
LOWER:=MID-2*STD(CLOSE,18);
V1AA:=(CLOSE-LOWER)/(UPPER-LOWER)*10;
V2AA:=V1AA-EMA(V1AA,5);
K1:=SUM(LLV(V2AA,4),4)/4;
V3AA:=EMA(V2AA,64)*10;
V4AA:=EMA(0.4*V2AA*(-1),3);
V5AA:=-1*EMA(V2AA,39)*10;
A:=V3AA>10;
B:=V2AA>V4AA;
D:=V5AA>10;
E:=V3AA<=10 OR V2AA<=V4AA OR V5AA<=10;
ZCHANGE:=IF(收>REF(CLOSE,1),收-REF(收,1),0);
FCHANGE:=IF(收<REF(CLOSE,1),收-REF(收,1),0);
ZCF:=IF(收>REF(收,1),ZCHANGE+REF(ZCHANGE,1),0);
FCF:=IF(收<REF(收,1),FCHANGE+REF(FCHANGE,1),0);
ZTCF:=SUM(ZCHANGE,27)-SUM(FCF,27)*(-1);
FTCF:=SUM(FCHANGE,27)*(-1)-SUM(ZCF,27);
资金值:=EMA(收,2);
STICKLINE(资金值>=牛熊分界 AND 资金值>=开,收,开,6,0),colorFF;
STICKLINE(资金值>=牛熊分界 AND 资金值>=开,高,低,0,0),colorFF;
STICKLINE(资金值>=牛熊分界 AND 资金值<开,收,开,6,0),colorFF;
STICKLINE(资金值>=牛熊分界 AND 资金值<开,开,高,0,0),colorFF;
STICKLINE(资金值>=牛熊分界 AND 资金值<开,收,低,0,0),colorFF;
STICKLINE(资金值<牛熊分界 AND 资金值>开,收,开,6,0),colorBF00BF;
STICKLINE(资金值<牛熊分界 AND 资金值<=开,收,开,6,0),colorBF00BF;
STICKLINE(资金值<牛熊分界 AND 资金值<=开,高,低,0,0),colorBF00BF;
STICKLINE(资金值<牛熊分界 AND 资金值>开,收,高,0,0),colorBF00BF;
STICKLINE(资金值<牛熊分界 AND 资金值>开,开,低,0,0),colorBF00BF;
STICKLINE(资金值<游资动向 AND 资金值>开,收,开,6,0),colorFF4D4D;
STICKLINE(资金值<游资动向 AND 资金值<=开,收,开,6,0),colorFF4D4D;
STICKLINE(资金值<游资动向 AND 资金值<=开,高,低,0,0),colorFF4D4D;
STICKLINE(资金值<游资动向 AND 资金值>开,收,高,0,0),colorFF4D4D;
STICKLINE(资金值<游资动向 AND 资金值>开,开,低,0,0),colorFF4D4D;
STICKLINE(收>开 AND ZTCF>0 AND FTCF<0,开,收,6,0),colorBF00;
STICKLINE(收>开 AND ZTCF>0 AND FTCF<0,高,低,0.5,0),colorBF00;
STICKLINE(收<=开 AND ZTCF>0 AND FTCF<0,开,收,6,1),colorBF00;
STICKLINE(收<=开 AND ZTCF>0 AND FTCF<0,收,低,0.5,0),colorBF00;
STICKLINE(收<=开 AND ZTCF>0 AND FTCF<0,高,开,0.5,0),colorBF00;
突破A1:=CROSS(收,牛熊分界);
STICKLINE(突破A1,高,低,0,0),LINETHICK2,colorB0B0;
STICKLINE(突破A1,开,收,8,0),LINETHICK2,colorB0B0;
DRAWTEXT(FILTER(突破A1>0,18),低*0.99,'关注'),colorFFFF;
|