DIF:EMA(CLOSE,4)-EMA(CLOSE,9); DEA:EMA(DIF,8),LINETHICK1;
IF(DIF<0,DIF,0),colorred,LINETHICK1;
IF(DIF<0,0,DIF),colorred,LINETHICK1;
IF(DIF<DEA,DIF,DEA),COLOR00FF00,LINETHICK1;
IF(DIF>DEA,DEA,DEA),colorwhite,LINETHICK1;
金叉:=CROSS(DIF,DEA) AND DIF<0.382;
STICKLINE(金叉,0,-0.191,2,0),COLOR0000FF;
A1:=EMA(CLOSE,4)-EMA(CLOSE,9);//www.fxjgsw.com
B1:=EMA((0.806*REF(A1,1)+0.236*A1),1);
做多:IF(A1>=B1,A1,B1),LINETHICK1,colorred;
做空:IF(B1-A1,B1,A1),LINETHICK1,colorgreen;
DRAWTEXT(REF(做多,1)>=REF(做空,1) AND 做多>做空,做空<做多,'●'),colorred;
DRAWTEXT(CROSS(做多,1)=CROSS(做空,1) AND 做多=做空,做空=做多,'☆'),colorgreen;
|
