N1:=3;
N2:=5;
上升线:EMA(C,N1),COLORRED,LINETHICK2;
下降线:EMA(C,N2),COLORGREEN,LINETHICK2;
中间线:EMA(下降线,N2),COLORWHITE,LINETHICK2;
VARF1:=COUNT(CROSS(上升线,中间线),2)=1;
VARF2:=COUNT(CROSS(下降线,中间线),2)=1;
ZAI:=FILTER(VARF1ANDVARF2,2);VV2:=REF(CLOSE,1);
VV3:=SMA((CLOSE-VV2),6,1)/SMA(ABS(CLOSE-VV2),6,1)*100;
DRAWICON(REF(VV3,1)》81ANDVV3《80,HIGH,2);
DRAWTEXT(REF(VV3,1)》81ANDVV3《80,HIGH,‘快卖↓’),COLORYELLOW;
VF1:=MA(CLOSE,60)-MA(CLOSE,5)/3.2;
DRAWTEXT(IF(CLOSE《VF1ANDVOL/240》MA(VOL,5)/240ANDCLOSE》=REF(CLOSE,1)*1.08ANDCLOSE《MA(CLOSE,13)*1.3,1,0),LOW,‘追’),COLORYELLOW;
VARA:=(CLOSE-REF(OPEN,29))/REF(OPEN,29)*100;
VARB:=EMA(0.667*REF(VARA,1)+0.333*VARA,5);
DRAWTEXT(IF(VOL》=1.3*MA(VOL,5)ANDCOUNT(VARA》=VARBANDVARA《-17,3)ANDREF(LOW,1)=LLV(LOW,120),1,0),LOW,‘★留意买入’);
VARR1:=SMA(MAX(CLOSE-REF(C,1),0),6,1)/SMA(ABS(CLOSE-REF(C,1)),6,1)*100;
DRAWICON(CROSS(82,VARR1),HIGH,2);
DRAWTEXT(CROSS(82,VARR1),HIGH,‘快卖↓’),COLORYELLOW;
VAR1:=(HIGH+LOW+OPEN+2*CLOSE)/5;
VAR2:=REF(VAR1,1);
VAR3:=SMA(MAX(VAR1-VAR2,0),10,1)/SMA(ABS(VAR1-VAR2),10,1)*100;
HY3:=IF(COUNT(VAR3《20,5)》=1ANDCOUNT(VAR1=LLV(VAR1,10),10)》=1ANDCLOSE》=OPEN*1.038ANDVOL》MA(VOL,5)*1.2,1,0);
DRAWTEXT(HY3,LOW,‘留意买入’),COLORRED;