|
高:=SUM(IF((REF(L,2)-L)>0 AND (REF(L,2)-L)>(H-REF(H,2)),(REF(L,2)-L),0),14)*80/SUM(MAX(MAX(H-L,ABS(H-REF((C+L+O+H)/4,2))),ABS(L-REF((C+L+O+H)/4,2))),14);
跌:=SMA(高,2,1);
限:=SMA(MAX(C-EMA((C+L)/2,21),0),8,1)/SMA(ABS(C-EMA((C+L)/2,21)),8,1)*100;
制:=(EMA(EMA((C-SMA(LOW,10000,1))*100,7),1)-EMA(EMA(EMA((C-SMA(LOW,10000,1))*100,7),1),5))*3;
STICKLINE((C/MA(C,50)-1)*100>=(O/MA(C,50)-1)*100,(H/MA(C,50)-1)*100,(L/MA(C,50)-1)*100,0,0) ,COLORred;
STICKLINE((C/MA(C,50)-1)*100>=(O/MA(C,50)-1)*100,(C/MA(C,50)-1)*100,(O/MA(C,50)-1)*100,6,1) ,COLORred;
STICKLINE((C/MA(C,50)-1)*100<(O/MA(C,50)-1)*100,(H/MA(C,50)-1)*100,(L/MA(C,50)-1)*100,0,0) ,COLORcyan;
STICKLINE((C/MA(C,50)-1)*100<(O/MA(C,50)-1)*100,(C/MA(C,50)-1)*100,(O/MA(C,50)-1)*100,6,1) ,COLORcyan;
{如果你认为需要可以把文字和括号删除就还原了
ma1:=ma(close,20);
MA5:=EMA((CLOSE+open+low+high)/4,3);
ma6:=EMA((CLOSE+open+low+high)/4,13);
var1:=CROSS(ma5,ma6);
var2:=cross(ma6,ma5);
VERTLINE(var1,0);VERTLINE(var2,1);}
RSI:=SMA(MAX(C-REF(C,1),0),4.1,1)/SMA(ABS(C-REF(C,1)),4.1,1)*100;
DRAWICON(CROSS(84,RSI),(H/MA(C,50)-0.96)*100,2);
DRAWICON(FILTER(CROSS(RSI,11),4) AND 跌>25 AND 限<70 AND 制<-10,(L/MA(C,50)-1.03)*100,1);
DRAWICON(FILTER(CROSS(SMA(MAX(C-REF(C,1),0),4.1,1)/SMA(ABS(C-REF(C,1)),4.1,1)*100,11),4) AND 跌>25 AND 限<70 AND 制<-10,(L/MA(C,50)-1.05)*100,4);
收盘均线:=HHV(MA((C/MA(C,50)-1)*100,17),2);
上线:SMA((H/MA(C,50)-0.958)*100,21,2),Color00FF00;
强弱线:IF(MA((C/MA(C,50)-1)*100,17)<收盘均线,(MA((C/MA(C,50)-1)*100,17)-(收盘均线-MA((C/MA(C,50)-1)*100,17))),收盘均线),COLORMAGENTA;
下线:SMA((L/MA(C,50)-1.068)*100,21,2),ColorFFFF00;
p1:=IF(C p2:=IF(C close3:=ref(close,3);
close5:=ref(close,5);
close8:=ref(close,8);
close13:=ref(close,13);
close21:=ref(close,21);
jc:=(ref(c,3)+ref(c,5)+ref(c,8)+ref(c,13)+ref(c,21))/5;
aa:=if(c>=ref(c,3),1,0);
bb:=if(c>=ref(c,5),1,0);
dd:=if(c>=ref(c,8),1,0);
ee:=if(c>=ref(c,13),1,0);
ff:=if(c>=ref(c,21),1,0);
gz2:=aa+bb+dd+ee+ff;
kk:=0;
for i=1 TO 4 DO
kk:=kk+REF(gz2,i);
kkk:=kk/4;
DRAWTEXT(kkk=0 and gz2>0 and c>REF(c,1) AND 跌>26 AND 限<70 AND 制<-6,(L/MA(C,50)-1.01)*100,'买'),COLORGREEN,ALIGN1;
DRAWTEXT(kkk=5 and gz2<5,(H/MA(C,50)-0.96)*100,'卖'),COLORRED,ALIGN1;
注意坐标线作用:0,POINTDOT;
LC:=REF(C,1);
RSI:=SMA(MAX(C-LC,0),4.1,1)/SMA(ABS(C-LC),4.1,1)*100;
DRAWICON(CROSS(84,RSI),H*1.03,5),ALIGN1 |
|