J: =EMA((C-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*100,5) ; BIAS1W :=(CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100;
BIAS2W :=(CLOSE-MA(CLOSE,12))/MA(CLOSE,12)*100;
BIAS3W :=(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100;
MM:=(BIAS1W+2*BIAS2W+3*BIAS3W)/6;
MN:=MA(MM,3);
VARH24:=(HHV(HIGH,24)-CLOSE)/(HHV(HIGH,24)-LLV(LOW,24))*100;
VAR18H:=(HHV(HIGH,18)-CLOSE)/(HHV(HIGH,18)-LLV(LOW,18))*100;
VAR2L18:=(CLOSE-LLV(LOW,18))/(HHV(HIGH,18)-LLV(LOW,18))*100;
VAR3:=(2*CLOSE+HIGH+LOW)/4;
VAR4:=LLV(LOW,26);
VAR5:=HHV(HIGH,34);
VAR6:=EMA((VAR3-VAR4)/(VAR5-VAR4)*100,16);
VAR7:=SMA((SMA(VAR2L18,3,1)+3),3,1);
VAR8:=EMA(VAR6,7);
VAR9:=SMA(VARH24,3,1);
VAR10:=(CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100;
VAR11:=(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100;
VAR12:=(CLOSE-MA(CLOSE,32))/MA(CLOSE,32)*100;
VAR13:=(VAR10+VAR11+VAR12)/3;
VAR14:=IF(VAR13<=-20,10,0);
VAR15:=HHV(VAR14,10);
VAR24:=LLV(LOW,34);
VAR25:=HHV(HIGH,34);
VARy26:=EMA((CLOSE-VAR24)/(VAR25-VAR24)*4,5)*25;
趋势线:(J+VARy26)/2, coloryellow,LINETHICK3;
下:IF(趋势线>=REF(趋势线,1),趋势线,DRAWNULL),colorred,LINETHICK3;
上:IF(趋势线<=REF(趋势线,1),趋势线,DRAWNULL),colorliblue,LINETHICK3;
底观察:IF(MN<-4,10,0),colorliblue,LINETHICK1;
底背离:IF((趋势线<10),90,100), coloryellow,LINETHICK1;
顶背离:IF((趋势线>80) AND (趋势线<10 OR VAR2L18>90),5,15), COLORFFFFFF,LINETHICK1;
卖点:IF(CROSS(90,VAR2L18) AND ((顶背离==15) AND REF(顶背离,1)=5),20,50), colorgreen,LINETHICK2;
买点:IF(趋势线<15 AND 趋势线>REF(趋势线,1) AND CROSS(90,VARH24) AND (底观察=10 OR 底背离=90 OR REF(底背离,1)=90),80,50), colorred,LINETHICK2;
VC:=(2*C+H+L)/4;
VD:=LLV(L,34);
VE:=HHV(H,34);
VF:=LLV(L,21);
V10:=HHV(H,21);
V11:=EMA((VC-VF)/(V10-VD)*100,5);
V12:=EMA((VC-VD)/(VE-VD)*100,8);
V13:=EMA(V12,5);
STICKLINE(V12>0 AND (V12-V13)>=0 ,80 ,78 ,6 ,0 ),COLORFF00FF;
STICKLINE(V12>0 AND (V12-V13)<0 ,80 ,78 ,6 ,1 ),COLOR00FF00;
STICKLINE(V12>0 AND (V12-V13)>=0 ,20 ,18 ,6 ,0 ),COLORFF00FF;
STICKLINE(V12>0 AND (V12-V13)<0 ,20 ,18 ,6 ,1 ),COLOR00FF00;
Var01:=REF((LOW+OPEN+CLOSE+HIGH)/4,1);
Var02:=SMA(ABS(LOW-Var01),13,1)/SMA(MAX(LOW-Var01,0),10,1);
Var03:=EMA(Var02,10);
Var04:=LLV(LOW,33);
走势线:=3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-2*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1),COLOR00FFFF;
Var05:-EMA(IF(LOW<=Var04,Var03,0),3)/5;
STICKLINE(-Var05>REF(-Var05,1),0,Var05,4,0 ),colorliblue;
STICKLINE(-Var05<REF(-Var05,1),0,Var05,4,0),COLOR00FFFF;
X:=LLV(J,2)=LLV(J,8);
DRAWTEXT(CROSS(J,REF(J+0.01,1)) AND X AND J<19,10,'进'),coloryellow;
DRAWTEXT(CROSS(J,REF(J+0.01,1)) AND X AND J<19,25,'▲'),coloryellow;
DRAWTEXT(CROSS(J,REF(J+0.01,1)) AND X AND J<19,20,'▲'),colorFF00FF;
DRAWTEXT(CROSS(J,REF(J+0.01,1)) AND X AND J<19,17,'↑'),colorFF00FF;
|
