{游侠_三线合一主图指标,适合主图及分时}
N1:=3;
N2:=5;
N3:=13;
三线和:(MA(C,N1)+MA(C,N2)+MA(C,N3))/3 COLORGREEN LINETHICK2;
三线和趋势:IF(三线和>REF(三线和,1),三线和,DRAWNULL) COLORRED LINETHICK3;
显示:=三线和>REF(三线和,1) AND ISLASTBAR,NODRAW;
TEXT:=CONST(IF(显示,'【我的K线,我作主:买入或持股】','【我的K线,我作主:观望或持币】'));
DRAWTEXT_FIX(1,0.80,0.12,0,TEXT),COLORYELLOW;