lllnnn1000 发表于 2017-1-12 21:44

上证指数副图指标

DRAWGBK(C>0,RGB(0,10,10),RGB(88,0,0),0,'?',0);{红色}{个股对应大盘指数} 指数【对应】: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");{红青立体K线} 开盘:="999999$O"; 收盘:="999999$C"; 最高:="999999$H"; 最低:="999999$L";STICKLINE(收盘>=开盘,收盘,开盘,3,0),COLOR000045;{红色} STICKLINE(收盘>=开盘,收盘,开盘,2.5,0),COLOR000065;STICKLINE(收盘>=开盘,收盘,开盘,2,0),COLOR000085;STICKLINE(收盘>=开盘,收盘,开盘,1.5,0),COLOR0000A5;STICKLINE(收盘>=开盘,收盘,开盘,1,0),COLOR0000C5;STICKLINE(收盘>=开盘,收盘,开盘,0.5,0),COLOR0000E5;STICKLINE(收盘>=开盘,最高,最低,0,0),COLOR0000F5;STICKLINE(收盘<开盘,收盘,开盘,3,0),COLOR656500;{青色} STICKLINE(收盘<开盘,收盘,开盘,2.5,0),COLOR757500;STICKLINE(收盘<开盘,收盘,开盘,2,0),COLOR858500;STICKLINE(收盘<开盘,收盘,开盘,1.5,0),COLOR959500;STICKLINE(收盘<开盘,收盘,开盘,1,0),COLORA5A500;STICKLINE(收盘<开盘,收盘,开盘,0.5,0),COLORB5B500;STICKLINE(收盘<开盘,最高,最低,0,0),COLORC5C500;{均线} 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;};

期待涨停2016 发表于 2017-1-13 22:35

感谢楼主分享!
页: [1]
查看完整版本: 上证指数副图指标