趋势之王
2016-10-8 10:12:03点击:
VAR0:=EMA(EMA(EMA(CLOSE,N),N),N);
VAR1: VAR0-REF(VAR0,1)+VAR0;
VAR2: MA(VAR1,N1);
STICKLINE(VAR1>VAR2,VAR2,VAR1,0.1,1);
STICKLINE(VAR2>VAR1,VAR1,VAR2,0.1,1);
DRAWTEXT(CROSS(VAR2,VAR1),VAR1*1.01,'↓降'), COLORGREEN;
DRAWTEXT(CROSS(VAR1,VAR2),VAR2*0.99,'↑升'), COLORYELLOW;
{抄底先锋: }
{M:1,50,1; N:1,60,18}
{VAR2:=MA(CLOSE,N);
VAR3:=(CLOSE-VAR2)/VAR2*100;
VAR4:=MA(VAR3,M);
升跌: VAR4;
VAR5:=BARSLAST(CROSS(-10,VAR4)=1);
VAR6:=BARSLAST(CROSS(VAR4,10)=1);
VAR7:=VAR4<-10 AND VAR5>=5;
VAR8:=VAR4>10 AND VAR6>=5;
C1: IF(VAR4<-10 AND VAR5>=5,VAR4,0), , COLORWHITE;
C2: C1, COLORSTICK;
C3: IF(VAR4>10 AND VAR6>=5,VAR4,0), , COLORWHITE;
C4: C3, COLORSTICK;
D: 升跌>REF(升跌,1) AND VAR7*25, , COLORRED; };