九毛八公式指标
请老师把5日线上穿21日线时写个红箭头,5日线下穿21日线时写个绿箭头,并且当K线在21日线上时都用红色表示,当K先在21线下时都用绿色表示,谢谢 源码: MA5:MA(CLOSE,M1),COLORF2E9E7,LINETHICK1; MA21:MA(CLOSE,M2),COLORYELLOW,LINETHICK2; MA60:MA(C,60),COLORRED,LINETHICK2; MA250:MA(C,250),LINETHICK1;
公式模块:
DRAWICON(crOSS(MA(C,5),MA(C,21)),MA(C,5),1);
DRAWICON(CROSS(MA(C,21),MA(C,5)),MA(C,5),2); STICKLINE(L>=MA(C,21),H,L,0,0),colorred; STICKLINE(L>=MA(C,21),C,O,3,0),colorred; STICKLINE(H<=MA(C,21),H,L,0,0),COLORGREEN; STICKLINE(H<=MA(C,21),C,O,3,0),COLORGREEN;