对比指数,知道自己手上的个股强弱。{个股对应大盘指数}
指数【对应】:INDEXC,NODRAW,COLORYELLOW;{沪股时显示上证指数,深股时显示深证(成份)指数}
{上证指数}
上证:"999999$C",NODRAW,COLORWHITE;
涨跌:"999999$C"-REF("999999$C",1),NODRAW,COLORLIGRAY;
{原系统K线}
DRAWKLINE("999999$H","999999$O","999999$L","999999$C");
{均线}
MA5:MA("999999$C",5),COLORWHITE;
MA10:MA("999999$C",10),COLORYELLOW;
MA20:MA("999999$C",20),COLORMAGENTA;
{MA30:MA("999999$C",30),COLORCYAN;}
MA60:MA("999999$C",60),COLORGREEN;
{MA120:MA("999999$C",120),COLORBLUE;};