Author: Copyright � 2005, komposter
ServerTime
0 Views
0 Downloads
0 Favorites
ServerTime
//+------------------------------------------------------------------+
//|                                                   ServerTime.mq4 |
//|                                      Copyright © 2005, komposter |
//|                                      mailto:komposterius@mail.ru |
//+------------------------------------------------------------------+
#property copyright "Copyright © 2005, komposter"
#property link      "mailto:komposterius@mail.ru"

#property indicator_chart_window

extern color TextColor = Black;
//----

int init()
  {
		  ObjectCreate( "ServerTime", OBJ_LABEL, 0,0,0,0,0,0,0);
		  ObjectSet( "ServerTime", OBJPROP_CORNER, 0);
		  ObjectSet( "ServerTime", OBJPROP_XDISTANCE, 0);
		  ObjectSet( "ServerTime", OBJPROP_YDISTANCE, 12);
		  ObjectSetText(  "ServerTime", "", 12, "Arial", TextColor);
    return(0);
  }
//----
int deinit() 
  { 
    ObjectDelete("ServerTime"); 
    return(0); 
  }
//----
int start() 
  { 
    ObjectSetText("ServerTime", TimeToStr( CurTime(), TIME_SECONDS ), 12, "Arial", TextColor ); 
    return(0); 
  }
//+------------------------------------------------------------------+


Comments

Markdown supported. Formatting help

Markdown Formatting Guide

Element Markdown Syntax
Heading # H1
## H2
### H3
Bold **bold text**
Italic *italicized text*
Link [title](https://www.example.com)
Image ![alt text](image.jpg)
Code `code`
Code Block ```
code block
```
Quote > blockquote
Unordered List - Item 1
- Item 2
Ordered List 1. First item
2. Second item
Horizontal Rule ---