MLC:=REF(CLOSE,240);
MH:=HHV(CLOSE,240);
ML:=LLV(CLOSE,240);
MA30:=EMA(CLOSE,30);
H1:=MAX(MLC,MH);
L1:=MIN(MLC,ML);
P1:=H1-L1;
阻力:=L1+P1*7/8,COLORGREEN;
支撑:=L1+P1*0.5/8,COLORRED;
中线:=(支撑+阻力)/2,COLORWHITE,POINTDOT;
V11:=3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)-2*SMA(SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1),3,1);
趋势线:EMA(V11,3),LINETHICK1,COLORLIMAGENTA;
V12:=(趋势线-REF(趋势线,1))/REF(趋势线,1)*100;
AA:=(趋势线<11) AND FILTER((趋势线<=11),15) AND C<中线;
BB0:=REF(趋势线,1)<11 AND CROSS(趋势线,11) AND C<中线;
DRAWICON(BB0 AND C<中线,14,1);
DRAWTEXT(BB0,20,'买'),COLORRED;
DRAWTEXT(AA,5,'抄底买入'),COLORYELLOW;
CC:=(趋势线>89) AND FILTER((趋势线>89),15) AND C>中线;
DD0:=REF(趋势线,1)>89 AND CROSS(89,趋势线) AND C>中线;
DRAWICON(DD0 AND C>中线,86,2);
DRAWTEXT(DD0,80,'卖'),COLORGREEN;
DRAWTEXT (CC,95,'逃顶卖出'),COLORWHITE;
顶:89,POINTDOT,COLORGREEN;
底:11,POINTDOT,COLORRED;
中:50,POINTDOT,COLORWHITE; |