- #property indicator_chart_window
- extern 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);
- }
复制代码
显示北京时间.zip
(527 Bytes, 下载次数: 35, 售价: 8 金钱)
|