MT4 图表上设置字符

int x =1 ;

int start()
  {
//----
      
      
   ObjectCreate("eurusd", OBJ_LABEL, 0, 0, 0);
      
   string str = "<";
      
   string show ;
      
   for(int i=0;i<x;i++){
      show = show+str ;
      
      
   }
      
      
      
      
      
      
      
      
      
   ObjectSetText("eurusd",show, 20, "Times New Roman", Yellow);
      
      
      
      
      
      
      
   ObjectSet("eurusd", OBJPROP_CORNER, 3);
   ObjectSet("eurusd", OBJPROP_XDISTANCE, 1);
   ObjectSet("eurusd", OBJPROP_YDISTANCE, 1);
      
   if (x==10) x=1 ;
      
   x++ ;
      
//----
   return(0);
  }
原文地址:https://www.cnblogs.com/aliblogs/p/5493823.html