显示北京时间
#property indicator_chart_windowextern color TextColor = Black;
int init()
{
ObjectCreate( "北京时间", OBJ_LABEL, 0,0,0,0,0,0,0);
ObjectSet( "北京时间", OBJPROP_CORNER, 0);
ObjectSet( "北京时间", OBJPROP_XDISTANCE, 0);
ObjectSet( "北京时间", OBJPROP_YDISTANCE, 12);
ObjectSetText("北京时间", "", 12, "Arial", TextColor);
return(0);
}
//----
int deinit()
{
ObjectDelete("北京时间");
return(0);
}
int start()
{
ObjectSetText("北京时间", TimeToStr(TimeLocal(), TIME_DATE|TIME_MINUTES|TIME_SECONDS), 12, "Arial", TextColor );
return(0);
}
显示:不是专家,不能执行。 谢谢楼主的分享 {:1_179:} 能正常使用呀
问下哪里是调整加载位置的,默认是左上角是吧
页:
[1]