DRAWCOLORKLINE(C>REF(C,1),COLORRED,0);//收盘价大于开盘价,绘制红色空心K线
DRAWCOLORKLINE(C<REF(C,1),COLORCYAN,0);//收盘价小于开盘价,绘制青色实心K线
DRAWCOLORKLINE(C=REF(C,1),COLORWHITE,0);//收盘价等于开盘价,绘制白色十字线
MA13:=MA(C,13);
DRAWCOLORLINE(C>MA13,MA13,COLORRED,RGB(0,128,0)),LINETHICK2;
DRAWCOLORKLINE(C>MA13,COLORRED,0);
DRAWCOLORKLINE(C<=MA13,RGB(0,128,0),0);
CLOSE,LINETHICK1;
CLOSE,LINETHICK1,COLORBLUE;
T:=DATACOUNT-BARPOS+1;
DRAWTEXT(C>MA13&&T=1,HHV(H,12),'只做多'),FONTSIZE25,COLORLIGHTRED,ALIGN0;
DRAWTEXT(C<MA13&&T=1,LLV(L,12),'只做空'),FONTSIZE25,COLORLIGHTGREEN,VALIGN0,ALIGN0;
老师 取消K线变绿变红色,保留均线变色 然后K线以收盘价变绿变红色
(来源:文华财经)