VAR1:=(C-EMA(C,6))/EMA(C,6);
VAR2:=EMA(EMA(VAR1,3),3);
VAR3:=EMA(EMA(VAR1,3),2);
VAR4:100*( VAR2+ VAR3),COLORWHITE,LINETHICK2;
VAR5:EMA(VAR4,2.5),COLORBLACK;
RISE:= VAR4>=REF(VAR4,1);
FELL:= VAR4<REF(VAR4,1);
IF(RISE, VAR4,DRAWNULL),COLORRED,LINETHICK2;
IF(FELL, VAR4,DRAWNULL),COLORGREEN,LINETHICK2;
VAR01:=(INDEXC-EMA(INDEXC,6))/EMA(INDEXC,6);
VAR02:=EMA(EMA(VAR1,3),3);
VAR03:=EMA(EMA(VAR1,3),2);
VAR04:=100*( VAR02+ VAR03);
BI:=100*(H+L)/2/EMA(C,17)-100,COLORYELLOW;
BUY1:=VAR4>REF(VAR4,1) AND REF(VAR4,1)<REF(VAR4,2) AND REF(VAR4,2)<REF(VAR4,3);
BUY2:=REF(BI,1)>0 AND BUY1 AND VAR4<-2;
BUY3:=REF(BI,1)<0 AND BUY1 AND REF(VAR4,1)<-3;
BUY4:=VAR4<0 AND CROSS(VAR4,VAR5) AND BUY1;
BUY:=(BUY2 OR BUY3 OR BUY4) AND (EMA(INDEXC,5)>REF(EMA(INDEXC,5),1) OR VAR04>=REF(VAR04,1));
DRAWICON(BUY,VAR4-1,14);
0,POINTDOT,COLORWHITE;
3,POINTDOT,COLORWHITE;
-3,POINTDOT,COLORWHITE;
本文来自: 股海明灯 详细文章参考:http://www.178448.com/thread-344881-1-1.html |