通达信对<<趋势循环>>副图的优化公式
觉得<<趋势循环>>副图指标很好,因此对其进行一些修改,在基本保持指标原样基础上,优化亮点如下:
(1)去掉指标原有的未来函数,消除大家使用时未来函数带来的恐惧感。
(2)对指标标出了买点,方便大家选股
{趋势循环}
P:0;
EMA5:=EMA(C,5);
EMA10:=EMA(C,10);
EMA20:=EMA(C,20);
EMA60:=EMA(C,60);
AA:=MAX( MAX(EMA5,EMA10),MAX(EMA20,EMA60));
BB:=MIN( MIN(EMA5,EMA10),MIN(EMA20,EMA60));
龙:=(BB/AA)*100;
龙A:=MA(MA(MA(EMA(龙,2),2),2),2);
飞:=EMA((龙A-REF(龙A,1))/REF(龙A,1),1)*1000,COLORFF00FF;
净:=MA(飞,10);
流:=EMA(净,10);
主力动向:=(EMA(净+流,1)-MA(净-流,2))*4,COLORFF00FF;
飞龙:MA(主力动向,D),COLORFF00FF;
STICKLINE(飞龙<0,飞龙,0,4,0),COLOR990099;
STICKLINE(飞龙<0,飞龙,0,3,0),COLORBB00BB;
STICKLINE(飞龙<0,飞龙,0,2,0),COLORDD00DD;
STICKLINE(飞龙<0,飞龙,0,1,0),COLORFF00FF;
STICKLINE(飞龙>REF(飞龙,1) AND 飞龙<0,飞龙,0,4,0),COLOR000099;
STICKLINE(飞龙>REF(飞龙,1) AND 飞龙<0,飞龙,0,3,0),COLOR0000CC;
STICKLINE(飞龙>REF(飞龙,1) AND 飞龙<0,飞龙,0,2,0),COLOR0000FF;
STICKLINE(飞龙>REF(飞龙,1) AND 飞龙<0,飞龙,0,1,0),COLORCC00FF;
STICKLINE(飞龙>REF(飞龙,1) AND 飞龙>0,飞龙,0,4,0),COLOR000099;
STICKLINE(飞龙>REF(飞龙,1) AND 飞龙>0,飞龙,0,3,0),COLOR0000BB;
STICKLINE(飞龙>REF(飞龙,1) AND 飞龙>0,飞龙,0,1.5,0),COLOR0000DD;
STICKLINE(飞龙>REF(飞龙,1) AND 飞龙>0,飞龙,0,0.5,0),COLOR0000FF;
XVAR2:=EXPMEMA(MA((C)*100,2),1);
STICKLINE(XVAR2>50 AND COST(60)<C AND 飞龙>0,飞龙,0,4,0),COLOR009900;
STICKLINE(XVAR2>50 AND COST(60)<C AND 飞龙>0,飞龙,0,3,0),COLOR00BB00;
STICKLINE(XVAR2>50 AND COST(60)<C AND 飞龙>0,飞龙,0,2,0),COLOR00DD00;
STICKLINE(XVAR2>50 AND COST(60)<C AND 飞龙>0,飞龙,0,1,0),COLOR00FF00;
STICKLINE(飞龙<REF(飞龙,1) AND 飞龙>0,飞龙,0,4,0),COLORCC9900;
STICKLINE(飞龙<REF(飞龙,1) AND 飞龙>0,飞龙,0,3,0),COLORDDBB00;
STICKLINE(飞龙<REF(飞龙,1) AND 飞龙>0,飞龙,0,2,0),COLORBBDD00;
STICKLINE(飞龙<REF(飞龙,1) AND 飞龙>0,飞龙,0,1,0),COLORAAFF00;
龙1:EMA(飞龙,12)-EMA(飞龙,26);
龙2:EMA(龙1,N),LINETHICK3;
龙3:EMA(龙1,M),LINETHICK3;
TJ1:=(MIN(C,O)-L)/(H-L)>=0.5;
TJ2:=L/MIN(C,O)<=0.99;
TJ3:=(C-MA(C,30))/MA(C,30)*100<-3;
TJ4:=C>O;
XG:TJ1 AND TJ2 AND TJ3 AND TJ4;
STICKLINE(TJ1 AND TJ2 AND TJ3 AND TJ4,0,5,2,0),COLORYELLOW;
DRAWICON(CROSS(龙2,龙3),龙2,1);