M3:=EMA(CLOSE,3);
M8:EMA(CLOSE,8),COLOR008000;
M13:EMA(M8,13),COLOR0000FF;
M62:EMA(M8,62),COLORF0F000;
VAR1:=EMA(M13,62);
M81:EMA(M62,81),COLOR00FFFF;
M144:EMA(VAR1,144),LINETHICK2,COLOR0000FF;
M250:EMA(VAR1,250),POINTDOT,LINETHICK2,COLORF00FF0;
MA250:MA(CLOSE,250),COLORGRAY;
RSV:=(C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100;
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
J:=3*K-2*D;
X:=LLV(J,2)=LLV(J,8);
Y:=IF(CROSS(J,REF(J+0.01,1)) AND X AND J<20,30,0);
主力:=EMA( (CLOSE-MA(CLOSE,3))/MA(CLOSE,3),2);
散户:=EMA( (CLOSE-MA(CLOSE,20))/MA(CLOSE,20),7);
VAR2:=LLV(LOW,10);
VAR3:=HHV(HIGH,25);
动能趋势线:=100*EMA((CLOSE-VAR2)/(VAR3-VAR2),4);
DRAWTEXT(CROSS(动能趋势线,70),HIGH*1.02,'风险'),COLORGREEN;
DRAWTEXT(CROSS(动能趋势线,80),HIGH*1.02,'减仓'),COLOR00FF00;
DRAWTEXT(CROSS(动能趋势线,87.5),HIGH*1.02,'出局'),COLORWHITE;
DRAWTEXT(CROSS(J,REF(J+0.01,1)) AND X AND J<20,LOW,'短进'),COLORFF00FF;
DRAWTEXT(CROSS(主力,散户) AND 主力<0 AND 散户<0,LOW,'见底'),COLORRED;
DRAWICON(CROSS(主力,散户) AND 主力<0 AND 散户<0,LOW,1);
STICKLINE((CROSS(J,REF(J+0.01,1)) AND X AND J<20),L,L-0.2,2,0);
{信号}
T1:=IF((DATE<=1090314),1,0);
VAR2H:=(CLOSE+HIGH+LOW)/(3);
VAR3H:=(EMA(VAR2H,10))*(T1);
VAR4H:=(REF(VAR3H,1))*(T1);
STICKLINE(CROSS(VAR3H,VAR4H),L,L-0.3,3,1),COLORWHITE;
VAR10H:=(MA(CLOSE,80)-(MA(CLOSE,10))/(3))*(T1);
DRAWTEXT(IF((CLOSE<VAR10H) AND ((VOL)/(240)>(MA(VOL,5))/(240)) AND (CLOSE>(REF(CLOSE,1))*(1.08)) AND (CLOSE<(MA(CLOSE,13))*(1.3)),1,0),LOW,'●抄底'),COLOR0000FF;
{www.fxjgsw.com}
VOLUME:=VOL;
MAVOL1:=MA(VOLUME,5);
MAVOL2:=MA(VOLUME,35);
MAVOL3:=MA(VOLUME,135);
买点:=REF(MAVOL1,1)<MAVOL3 AND MAVOL1>REF(MAVOL1,1)AND VOLUME>REF(VOLUME,1)AND C>REF(HIGH,1)AND REF(VOLUME,1)<MAVOL3 AND REF(VOLUME,2)<MAVOL3 AND REF(VOLUME,3)<MAVOL3 AND C>OPEN;
STICKLINE(买点,LOW,LOW-0.2,2,3),COLORGREEN;
|