SWEETBOY1990:
On Tick () or int Start() , 不是Oninit 吧
int OnInit()
{
double price;
price=iClose(NULL,0,0);
ObjectCreate("tubiao",OBJ_LABEL,0,0,0,0);
ObjectSetText("tubiao",price,30,"Tahoma",Black);
ObjectSet("tubiao",OBJPROP_XDISTANCE,20);
ObjectSet("tubiao",OBJPROP_YDISTANCE,20);
}
int start()
return(0);
}
最终运行结果如图所示(已添加附件),价格已显示在左上角,但是值不会变动, 怎么让显示的值 随着价格的变动而变动呢, 求大虾指导
}
最终运行结果如图所示(已添加附件),价格已显示在左上角,但是值不会变动, 怎么让显示的值 随着价格的变动而变动呢, 求大虾指导