文华财经WH6期货多空K线变色主图指标公式源码:
5线:=MA(C,5),COLORWHITE,PRECIS0;
13线:=MA(C,13),COLORWHITE,PRECIS0;
26线:=MA(C,26),COLORMAGENTA,PRECIS0;
89线:=MA(C,89),COLORGREEN,PRECIS0;
MA250:=MA(C,250),COLORRED,PRECIS0;
MA500:=MA(C,500),COLORLIGHTGREY,PRECIS0;
DRAWCOLORKLINE(5线>13线&&5线>26线&&ISDOWN=0,COLORYELLOW,0);
DRAWCOLORKLINE(5线>13线&&5线>26线&&ISDOWN=1,COLORYELLOW,1);
DRAWCOLORKLINE(5线>13线&&5线>89线&&ISDOWN=0,COLORMAGENTA,0);
DRAWCOLORKLINE(5线>13线&&5线>89线&&ISDOWN=1,COLORMAGENTA,1);
DRAWCOLORKLINE(5线>13线&&5线>MA250&&ISDOWN=0,COLORMAGENTA,0);
DRAWCOLORKLINE(5线>13线&&5线>MA250&&ISDOWN=1,COLORMAGENTA,1);
DRAWCOLORKLINE(5线<13线&&5线<26线&&ISDOWN=0,COLORWHITE,1);
DRAWCOLORKLINE(5线<13线&&5线<26线&&ISDOWN=1,COLORWHITE,0);
DRAWCOLORKLINE(5线<13线&&5线<89线&&ISDOWN=0,COLORCYAN,1);
DRAWCOLORKLINE(5线<13线&&5线<89线&&ISDOWN=1,COLORCYAN,0);
DRAWCOLORKLINE(5线<13线&&5线<MA250&&ISDOWN=0,COLORCYAN,1);
DRAWCOLORKLINE(5线<13线&&5线<MA250&&ISDOWN=1,COLORCYAN,0);