請(qǐng)看看此公式能否再優(yōu)化.謝謝 {n1,10,1,100,n2,40,1,200,n3,5,1,300,} E10:EMA(CLOSE,n1); E40:EMA(CLOSE,n2); M5:MA(CLOSE,n3); M3:MA(CLOSE,3),color00ff00; COST(3),COLORWHITE,POINTDOT,linethick3; F:=100*(C-REF(C,1))/REF(C,1); 今小昨:=IF(C<REF(O,1) AND f<0,1,0); p1:=今小昨; 今小前:=IF(C<REF(O,2) AND f<0,1,0); p2:=今小前; stickline(P1=0 AND REF(P1,1)=1 AND P2=0 AND REF(P2,1)=1,open,CLOSE,3,0), colormagenta; stickline(P1=1 AND REF(P1,1)=0 AND P2=1 AND REF(P2,1)= 0,open,CLOSE,3,0),colorAAAAAA; {DRAWICON(CLOSE>=M3,LOW,7);}; f:=100*(c-ref(c,1))/ref(c,1); a1:=close; a2:=open; stickline(a1<a2 and f<-3 and f>-5,a1+(a2-a1)/3,a1+(a2-a1)/3,6,0),COLORred; stickline(a1<a2 and f<-3 and f>-5,a1+2*(a2-a1)/3,a1+2*(a2-a1)/3,6,0),COLORred; stickline(a1<a2 and f<=-5 and f>-7,a1+(a2-a1)/2,a1+(a2-a1)/2,6,0),COLORred; stickline(a1<a2 and f<=-7 and f>-10,a1+2*(a2-a1)/3,a1+(a2-a1)/3,6,1),COLORred; STICKLINE(A1<A2 AND F<=-9.9,A2,A1,6,0),COLOR00ff00; stickline(a1>a2 and f>3 and f<5,a2+(a1-a2)/3,a2+(a1-a2)/3,6,0),COLORyellow; stickline(a1>a2 and f>3 and f<5,a2+2*(a1-a2)/3,a2+2*(a1-a2)/3,6,0),COLORyellow; stickline(a1>a2 and f>=5 and f<7,a2+(a1-a2)/2,a2+(a1-a2)/2,6,0),COLORyellow; stickline(a1>a2 and f>=7 and f<10,a2+2*(a1-a2)/3,a2+(a1-a2)/3,6,1),COLORyellow; stickline(a1>a2 and f>=10,a1,a2,6,0),COLORyellow;股票論壇 www.55188.com |
|