大智慧趋势跟踪指标公式
<p>MA5:=MA(CLOSE,5);<br />MA10:=MA(CLOSE,10);<br />
MA20:=MA(CLOSE,20);<br />
A1:=IF(C>=MA5,1,-1);<br />
A2:=IF(C>=MA10,1,-1);<br />
A3:=IF(C>=MA20,1,-1);<br />
A4:=IF(MA5>=REF(MA5,1),1,-1);<br />
A5:=IF(MA10>=REF(MA10,1),1,-1);<br />
A6:=IF(MA20>=REF(MA20,1),1,-1);<br />
趋势:(A1+A2+A3+A4+A5+A6)/6*100,Color00FF00;<br />
主升浪:趋势>=50,COLOR0000FF,POINTDOT,LINETHICK0;<br />
↓:趋势<50,COLORFFFFFF,POINTDOT,LINETHICK0;<br />
周期:IF(主升浪,BARSLAST(CROSS(主升浪,0.1))+1,0),COLORFF00FF,POINTDOT,LINETHICK0;<br />
临界:IF(CROSS(98,趋势),1,0),COLOR00FF00,POINTDOT,LINETHICK0;<br />
WKQY:=BARSLAST(CROSS(50,趋势))<MIN(BARSLAST(CROSS(趋势,1)),BARSLAST(CROSS(趋势,-1)));<br />
挖坑:BETWEEN(趋势,-1,50) and WKQY,COLOR00FFFF,POINTDOT,LINETHICK0;<br />
{以下设置副图显示方式}<br />
FILLRGN(50,趋势,主升浪,RGB(250,0,0)),LAYER7;<br />
FILLRGN(50,趋势,挖坑,RGB(250,250,0)),LAYER7;<br />
STICKLINE(主升浪,周期*0.8,周期*0.95,6,0),COLOR0000FF;<br />
STICKLINE(主升浪,周期*1.05,周期*1.2,6,0),COLOR0000FF;<br />
STICKLINE(主升浪 AND C<REF(C,1),周期*0.9,周期*1.1,6,1),COLORFFFFFF;<br />
VERTLINE(CROSS(主升浪,0.1),2),COLOR0000FF;<br />
DRAWTEXT(临界,100,'S☆'),COLOR00FF00,ALIGN1;<br />
0,COLORFFFFFF;50,COLOR00FFFF,DOTLINE;<br />
{以下设置文字提示部分}<br />
DRAWTEXTREL(10,120,'股票名称:'+'【'+STKLABEL+' '+STKNAME+'】'),COLORFFFFFF;<br />
DRAWTEXTREL(10,720,' ■只做主升,挖坑低吸!'),COLORFFFFFF;<br />
DRAWTEXTREL(10,820,' ●临界不涨,逢高离场!'),COLOR00FFFF;</p>
<p></p>
<p> </p>
页:
[1]