苍松优化
2016-9-27 9:40:30点击:
LC := REF(CLOSE,1);
苍松1:SMA(MAX(CLOSE-LC,0),n,1)/SMA(ABS(CLOSE-LC),n,1)*100-15,COLORwhite;
苍松2:SMA(MAX(CLOSE-LC,0),m,1)/SMA(ABS(CLOSE-LC),m,1)*100-15,coloryellow;
0,coloryellow,linethick2;15,Color009DFF,pointdot;35,colorgreen;55,Color009DFF,pointdot;67,linethick2,colorred;
Aa19:=IF(苍松1<3.3,15,0);
超跌:Aa19,stick,Colorred,linethick2;
Aa20:=IF(苍松1<1,21,0);
暴跌:Aa20,stick,Coloryellow,linethick2;
A5:=INDEXC;
A9:=MA(C,30);
A10:=(C-A9)/A9*100;
A11:=MA(A10,3);
A14:=(A5-REF(A5,1))/REF(A5,1);
A15:=BARSLAST(CROSS(-10,A11)=1);
A16:=BARSLAST(CROSS(A11,10)=1);
A17:=A11<15*(-1) AND A15>=5;
A19:=IF(A11<-10 AND A15>=5,A11,0);
机会:IF(A11<-10 AND A15>=5,A19/5*(1+0.91),0),stick,Colorgreen,linethick2;
A22:=((REF(CLOSE,10)-908*REF(CLOSE,10)/1000)/REF(CLOSE,10));
风险:IF(A11>10 AND A16>=5,A11,0),colorred,linethick0;
STICKLINE(风险>0,70-A11/4*(1+0.98),70,1,0),COLORRED;
A24:=MA(A5,5)>A5*0.95 AND MA(A5,30)*9>MA(A5,5)*10 AND
MA(A5,20)>MA(A5,5)*1.095 AND MA(A5,60)<REF(MA(A5,60),1) AND
MA(A5,100)<REF(MA(A5,100),1) AND MA(A5,60)*100<MA(A5,100)*98;
A25:=A14>A22;
A32:=(CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60))*100;
A33:=SMA(A32,5,1);
A34:=SMA(A33,5,1);
A35:=BARSLAST(A25=1);
A36:=BETWEEN(A35,0,11) ;
A37:=A25=1 OR A36=1;
A38:=IF(A37=1,0,1);
A39:=A24 AND C/COST(8)<=0.8 AND (C>OPEN OR C<OPEN) AND (REF(C,1)>REF(O,1) OR REF(C,1)<REF(O,1));
买:=IF(CROSS(A33,A34) AND A33<20 AND A17=1 AND A38>0 OR A39,6,0);
STICKLINE(买=6,0,27,1,0),linethick3,Colorred;
DRAWICON(买=6,29,8);
DRAWTEXT(FILTER( A19=A11,10)=1,A19/100*(1+0.8) ,'▲'),COLORRED;
乖离¥:(CLOSE-MA(CLOSE,30))/MA(CLOSE,30)*100,colorred,linethick0;
STICKLINE(乖离¥<-28,34,35,1,0),coloryellow,linethick2;
Var1:=REF(CLOSE,1);
Var2:=SMA(MAX(CLOSE-Var1,0),6,1)/SMA(ABS(CLOSE-Var1),6,1)*100;
drawicon(CROSS(84,Var2),60,7);
Var6:=(CLOSE-MA(C,5))/MA(C,5)*100;
Var7:=(CLOSE-MA(C,13))/MA(C,13)*100;
Var8:=(CLOSE-MA(C,55))/MA(C,55)*100;
真实乖离率:=(VAR6+VAR7+VAR8)/3;
drawicon(CROSS(10.8,真实乖离率),68,12);
风雨乖离度:(MA(h,1)-MA(c,a))/((h+c)/2)*100,linethick0;