通达信东方动能线优化副图指标公式
{东方动能柱,副图}
{参数:M(2,8,3),N(3,60,20)}
A1:=REF(C,1);
A2:=DCLOSE;{通达信DCLOSE,大智慧如要使用,须去掉前面的D}
A3:=(A2-A1)/A1*100;
东方动能柱:=A3*VOL/10000,NODRAW;{,COLOR3D;}{通达信DVOL,大智慧如要使用,须去掉前面的D}
累计动能:=EMA(EMA(东方动能柱,M),N)*N,COLORRED,LINETHICK3;
{DRAWICON(CROSS(累计动能,十日均能),累计动能*1.18,1);
DRAWICON(CROSS(五日均能,累计动能),累计动能*1.18,2);};
STICKLINE(累计动能>0,0,累计动能,2,0),COLORFF00FF;
STICKLINE(累计动能<0,0,累计动能,2,0),COLORGREEN;
五日均能:MA(累计动能,5),COLORFF00FF;
十日均能:MA(累计动能,10),COLORWHITE;
DRAWICON(CROSS(五日均能,十日均能),五日均能*0.98,23);
DRAWICON(CROSS(十日均能,五日均能),十日均能*0.98,2);
TY:=累计动能;
AA1:=REF(TY,10)=HHV(TY,2*10+1); B1:=FILTER(AA1,10); C1:=BACKSET(B1,10+1); HHD:=FILTER(C1,10);
AA2:=REF(TY,10)=LLV(TY,2*10+1); B2:=FILTER(AA2,10); C2:=BACKSET(B2,10+1); LD:=FILTER(C2,10);
前期高位:REF(累计动能,BARSLAST(HHD)),COLORFF00FF,POINTDOT;
STICKLINE(累计动能,前期高位,前期高位,2,1),COLORYELLOW;
BDGD:=累计动能=HHV(累计动能,13);
GDSJ:=BARSLAST(FILTER(CROSS(0.8,BDGD),2))+1;
高点:REF(累计动能,GDSJ),COLORFF00FF,POINTDOT;
突破:CROSS(累计动能,REF(高点,1)),COLOR00FFFF,POINTDOT,NODRAW;
STICKLINE(GDSJ<=6,高点,高点,2,1),COLORYELLOW;