{一品波段----一品茶緣編寫(xiě),大智慧副圖指標(biāo)}{飛弧通用}
Var1:=(CLOSE*2+HIGH+LOW)/4;{當(dāng)日股價(jià)中線(xiàn)}
SK:EMA(Var1,13)-EMA(Var1,73);{13日均線(xiàn)-73日均線(xiàn),求差}
SD:EMA(SK,2);{SK的2日均線(xiàn)}
dx1:=cross(sk,sd) and sk<-0.04 and (c-ref(c,1))/ref(c,1)*100>=3;
{sk與sd低位金叉,當(dāng)日漲幅大于+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中位金叉,并且放量上漲。(當(dāng)日量大于5日均量2倍,或者漲幅大于+3.5%)}
短線(xiàn):(dx1 or dx2 or dx3)*0.5,color00ff00;
{滿(mǎn)足條件dx1dx2dx3之一,設(shè)定為短線(xiàn)買(mǎi)入條件。}
買(mǎi)入:(cross(sk,sd) and barslast(cross(sd,sk))>=8)*0.2,colorwhite;
加碼:(cross(sk,sd) and barslast(cross(sd,sk))<8)*0.3,coloryellow;
{以下設(shè)置副圖顯示方式}
drawtext(短線(xiàn)>0 ,0.8,'短線(xiàn)'),color00ff00;
drawtext(買(mǎi)入>0 ,0.5,'買(mǎi)入'),colorwhite;
drawtext(加碼>0 ,0.5,'加碼'),coloryellow;
(南方財(cái)富網(wǎng)SOUTHMONEY.COM)