N:=21;M1:=2;M2:=2;
l1:=MA(CLOSE,1);
l2:=(LOW+HIGH+CLOSE)/3;
l3:= MA(l2,5);
l4:= HHV(l3,10);
l5:= MA(l2,5);
mai:=LLV(l5,10);
急買奇準:IF(LLV((l1<mai),5),50,0),colorwhite,LINETHICK2;
REFLINE: 0, 20, 50, 80, 100;
RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;
K:SMA(RSV,M1,1);
D:SMA(K,M2,1);
J:3*K-2*D;
DRAWTEXT(j<0,(low),'抄'),COLORYELLOW,LINETHICK2;
DRAWTEXT(j<10 and CROSS(j,D) andCROSS(j,k),(j),'抄'),COLORYELLOW,LINETHICK2;
DRAWTEXT(j>10 AND j<40 and CROSS(j,D)and CROSS(j,k),(j),'賭'),COLORred,LINETHICK2;
DRAWTEXT(j>50 and j<68 and CROSS(j,D)and CROSS(j,k),(j),'賭'),COLORred,LINETHICK2;
DRAWTEXT((j>98.88 andEMA(j,3)<ema(j,1)),(j*0.85),'跑'),COLORgreen,LINETHICK2;
TR:=SUM(MAX(MAX((HIGH – LOW),ABS((HIGH – REF(CLOSE,1)))),ABS((LOW -REF(CLOSE,1)))),5);
HD:=(HIGH – REF(HIGH,1));
LD:=(REF(LOW,1) – LOW);
DMP:=(SUM(IF(((HD > 0) AND (HD >LD)),HD,0),5) );
DMM:=SUM(IF(((LD > 0) AND (LD >HD)),LD,0),5);
神偷線:=(((DMP ) * 100) / TR);
輔助線:=((DMM * 100) / TR);
動向趨勢線:=(MA(((ABS((輔助線 – 神偷線)) / (輔助線 + 神偷線)) * 100),3));
ADXR:=((動向趨勢線 + REF(動向趨勢線,3)) / 2);
VAR1:=MA(LOW,1);
VAR2:=MA(HIGH,2);
VAR3:=MA(CLOSE,2);
VAR7:=REF(VAR3,1);
【強弱】:=((SMA(MAX((VAR3 – VAR7),0),5,1) / SMA(ABS((VAR3 -VAR7)),5,1)) * 100);
沒神的隻有不錯:( IF(((動向趨勢線 > 88) AND (神偷線 <5.8)),80,0)),LINETHICK3,colorFF00FF;