Var1:=(CLOSE*2+HIGH+LOW)/4;{當日股價中線}
SK:EMA(Var1,13)-EMA(Var1,73);{13日均線-73日均線,求差}
SD:EMA(SK,2);{SK的2日均線}
dx1:=cross(sk,sd) and sk<-0.04 and (c-ref(c,1))/ref(c,1)*100>=3;
{sk與sd低位金叉,當日漲幅大于+3%}
dx2:=cross(sk,sd) and sk<=-0.14;{sk與sd超跌低位金叉}
dx3:=cross(sk,sd) and sk<=0.05 and (v/ma(v,5)>2 or (c-ref(c,1))/ref(c,1)
*100>=3.5);
{sk與sd中位金叉,并且放量上漲。(當日量大于5日均量2倍,或者漲幅大于+3.5%)}
短線:(dx1 or dx2 or dx3)*0.5,color00ff00;
{滿足條件dx1dx2dx3之一,設定為短線買入條件。}
買入:(cross(sk,sd) and barslast(cross(sd,sk))>=8)*0.2,colorwhite;
加碼:(cross(sk,sd) and barslast(cross(sd,sk))<8)*0.3,coloryellow;
{以下設置副圖顯示方式}
drawtext(短線>0 ,0.8,'短線'),color00ff00;
drawtext(買入>0 ,0.5,'買入'),colorwhite;
drawtext(加碼>0 ,0.5,'加碼'),coloryellow;(南方財富網(wǎng)SOUTHMONEY.COM)
(責任編輯:張曉軒)