九毛八公式指标
ED1:=(-2*REF(C,2)+REF(C,1)+2*C); ED2:=(-0.4*REF(C,4)-0.4*REF(C,3)-1.1*REF(C,2)+0.9*REF(C,1)+2*C); JF1:SMA(SMA(ED1,3,1),3,1),COLORYELLOW; JF2:SMA(SMA(ED2,4,1),3,1),COLORWHITE; DRAWICON(CROSS(ED2,JF2),L/1.001,1); DRAWICON(CROSS(JF2,ED2),H*1.001,2);
公式模块:
ed1:=(-2*ref(c,2)+ref(c,1)+2*c);
ed2:=(-0.4*ref(c,4)-0.4*ref(c,3)-1.1*ref(c,2)+0.9*ref(c,1)+2*c); jf1:=SMA(sma(ed1,3,1),3,1),coloryellow; jf2:=sma(sma(ed2,4,1),3,1),colorwhite; drawicon(cross(ed2,jf2),l/1.001,1); drawicon(cross(jf2,ed2),h*1.001,2); s1:=barslast(cross(jf2,ed2)); drawline(currbarscount=const(ref(s1,s1+1))+const(s1)+2,h,currbarscount=const(s1)+1,h,1);