设为首页加入收藏

微信关注
官方微信号:71712643
加关注获取每日精选资讯
股票入门欢迎您加入
广告服务联系我们网站地图

同花顺副图指标公式 同花顺看上证深证股票时显示对应指数副图

2014-11-11 12:52:00 股票入门 http://rumen.southmoney.com

  南方财富网带来同花顺副图指标公式 同花顺看上证深证股票时显示对应指数副图:

  同花顺实现当看600开头的股票时显示上证指数副图,看00开头的股票时显示深证指数副图。

  DRAWGBKLAST(CLOSE》0,STRIP(RGB(100,100,100),RGB(100,100,100),1));

  TC:=STRFIND(STRLEFT(CODE,3),‘600’,1);

  CC:IF(tc=1,INDEXDATA(“1A0001”,&CLOSE),INDEXDATA(“399001”,&CLOSE));//线形不输出

  OO:IF(tc=1,INDEXDATA(“1A0001”,&OPEN),INDEXDATA(“399001”,&OPEN)); //线形不输出

  HH:IF(tc=1,INDEXDATA(“1A0001”,&HIGH),INDEXDATA(“399001”,&HIGH)); //线形不输出

  LL:IF(tc=1,INDEXDATA(“1A0001”,&LOW),INDEXDATA(“399001”,&LOW)); //线形不输出

  STICKLINE(OO》=CC ,CC ,OO,8,0 ),COLOR777700;

  STICKLINE(OO》=CC ,CC ,OO,7,0 ),COLOR999900;

  STICKLINE(OO》=CC ,CC ,OO,5,0 ),COLORbbbb00;

  STICKLINE(OO》=CC ,CC ,OO,3,0 ),COLORdddd00;

  STICKLINE(OO》=CC ,HH,LL,1 ,0 ),COLORffff00;

  STICKLINE(CC》OO ,CC,OO,8,0) ,COLOR000077;

  STICKLINE(CC》OO ,CC,OO,7,0) ,COLOR000099;

  STICKLINE(CC》OO ,CC,OO,5,0) ,COLOR0000bb;

  STICKLINE(CC》OO ,CC,OO,3,0) ,COLOR0000dd;

  STICKLINE(CC》OO ,HH,LL,1,0 ),COLOR0000FF;

  MA5:MA(CC,5),COLOR00FFFF;

  MA10:MA(CC,10),COLORFFFF00;

  MA20:MA(CC,20),COLOR00FF00;

  MA30:MA(CC,30),COLOR0000FF;

  MA40:MA(CC,40),COLOR009FFF;

  MA60:MA(CC,60),COLORFF0000;

  MA120:MA(CC,120),COLORFF00FF;

  MA250:MA(CC,250),COLORFFFFFF;

  gg:=ISNULL(REFX(&CLOSE,1));

  DRAWTEXT(gg,MA5,‘``’+TOSTRING(MA5,2)),COLOR00FFFF;

  DRAWTEXT(gg,MA10,‘``’+TOSTRING(MA10,2)),COLORFFFF00;

  DRAWTEXT(gg,MA20,‘``’+TOSTRING(MA20,2)),COLOR00FF00;

  DRAWTEXT(gg,MA30,‘``’+TOSTRING(MA30,2)),COLOR0000FF;

  DRAWTEXT(gg,MA40,‘``’+TOSTRING(MA40,2)),COLOR009FFF;

  DRAWTEXT(gg,MA60,‘``’+TOSTRING(MA60,2)),COLORFF0000;

  DRAWTEXT(gg,MA120,‘``’+TOSTRING(MA120,2)),COLORFF00FF;

  DRAWTEXT(gg,MA250,‘``’+TOSTRING(MA250,2)),COLORFFFFFF;

股票入门声明:资讯来源于互联网,属作者个人观点,仅供投资者参考,并不构成投资建议。投资者据此操作,风险自担。