zsch 发表于 2014-9-1 15:48:32

在线等,这些语句中文字显示位置如何设置向右平移



void ShowLines(){
   for( i=0; i<OctLinesCnt; i++ ){
      buff_str ="mml"+i;
      if(ObjectFind(buff_str) == -1) {
         ObjectCreate(buff_str, OBJ_TREND, 0, Time, mml, Time, mml);
//         ObjectSet(buff_str, OBJPROP_STYLE, STYLE_DOT);
         ObjectSet(buff_str, OBJPROP_COLOR, mml_clr);
         ObjectSet(buff_str, OBJPROP_RAY, false);
         
       }
      ShowTipLines(Lwidth, mml);
      buff_str = "                     mml_txt"+i;
      if(ObjectFind(buff_str) == -1) {
         ObjectCreate(buff_str, OBJ_TEXT, 0, Time,mml_shft );
         ObjectSetText(buff_str, ln_txt, 8, "Arial", mml_clr);
         ObjectMove(buff_str, 0, Time,mml);
      }
      else {ObjectMove(buff_str,0, Time,mml);}
//      ObjectSetText(buff_str, ln_txt+DoubleToStr(Lwidth,0), 8, "Arial", mml_clr);
      ObjectSetText(buff_str, ln_txt, 8, "Arial", mml_clr);
    } // for( i=1; i<=OctLinesCnt; i++ ){
   return(0);
}// End ShowLines()

翻开一页 发表于 2014-9-1 16:57:27

提问题要有技巧,贴一个半拉子指标源码会浪费回答者很多时间,全贴出来,别人运行一下,很快就修改好了。但这无法运行。

digit 发表于 2014-9-1 21:17:50

你可以参考这里:http://www.520fx.com/forum.php?mod=redirect&goto=findpost&ptid=55597&pid=980532

liling0 发表于 2014-9-2 20:22:54

ShowTipLines这个是干嘛的!OctLinesCnt 这个又是计算什么的?
你把全部源码发出来!要么你自己研究吧!前面我的帖子,Digit神一般的指导贴。对你应该很有帮助!
要不你就把全部代码贴出来!

liling0 发表于 2014-9-2 20:39:39

本帖最后由 liling0 于 2014-9-2 20:43 编辑



一点编译,都16个错误!这XXXXXX的咋 又偏移呀!

123aa123 发表于 2014-9-29 19:07:19

路过挣钱
页: [1]
查看完整版本: 在线等,这些语句中文字显示位置如何设置向右平移