Miscellaneous
2
Views
0
Downloads
0
Favorites
ytg_NO_CONNECT
//+------------------------------------------------------------------+
//| ytg_NO_CONNECT.mq4 |
//| Yuriy Tokman |
//| http://www.mql-design.ru |
//+------------------------------------------------------------------+
#property copyright "Yuriy Tokman"
#property link "http://www.mql-design.ru"
#property indicator_separate_window
extern string Copyright = "Forex InvEST Group";
extern string Best_Experts_For_Sale = "http://soft4forex.com/";
extern string e_mail = "soft4forex@forexinvest.ee";
extern string Skype = "forex.invest.group";
extern string mark = "l";
extern color colir = Green;
string short_name;
string char[256];
//+------------------------------------------------------------------+
//| Custom indicator initialization function |
//+------------------------------------------------------------------+
int init()
{
//---- indicators
int i;
for (i = 0; i < 256; i++) char[i] = CharToStr(i); IndicatorShortName
(char[104]+char[116]+char[116]+char[112]+char[58]+char[47]+char[47]+char[119]+char[119]+char[119]+char[46]+char[109]+char[113]+char[108]+char[45]+char[100]+char[101]+char[115]+char[105]+char[103]+char[110]+char[46]+char[114]+char[117]);
Label("ytg_logo_8",
char[104]+char[116]+char[116]+char[112]+char[58]+char[47]+char[47]+char[119]+char[119]+char[119]+char[46]+char[109]+char[113]+char[108]+char[45]+char[100]+char[101]+char[115]+char[105]+char[103]+char[110]+char[46]+char[114]+char[117],
3,450,5,14,"Arial",Lime);
//----
return(0);
}
//+------------------------------------------------------------------+
//| Custom indicator deinitialization function |
//+------------------------------------------------------------------+
int deinit()
{
//----
GetDellName ();
//----
return(0);
}
//+------------------------------------------------------------------+
//| Custom indicator iteration function |
//+------------------------------------------------------------------+
int start()
{
//----
int period = Period();
if(period!=1){
Alert("Use the indicator on the period Ì1.");return;}
int win_idx=WindowFind("http://www.mql-design.ru");
datetime time_m1 = iTime(Symbol(),Period(),0);
TxtGraf("ytg_metka"+time_m1, "l", time_m1, 0, win_idx, colir,"Wingdings");
//----
return(0);
}
//+------------------------------------------------------------------+
//| Ôóíêöèÿ îòîáðàæåíèÿ òåêñòà |
//| àâòîð: Þðèé Òîêìàíü |
//| e-mail: yuriytokman@gmail.com |
//| ICQ# 481-971-287 |
//| Skype: yuriy.g.t |
//+------------------------------------------------------------------+
void TxtGraf(string labebe, string txt, datetime time1, double price1, int window=0, color colir = Brown, string tt = "Times New Roman")
{
if (ObjectFind(labebe)!=-1) ObjectDelete(labebe);
ObjectCreate(labebe, OBJ_TEXT, window, time1, price1);
ObjectSetText(labebe, txt, 8, tt, colir);
ObjectSet(labebe, OBJPROP_BACK, true);
}
//----+
void GetDellName (string name_n = "ytg_")
{
string vName;
for(int i=ObjectsTotal()-1; i>=0;i--)
{
vName = ObjectName(i);
if (StringFind(vName,name_n) !=-1) ObjectDelete(vName);
}
}
//----+
void Label(string name_label,string text_label,int corner = 2,int x = 3,int y = 15,int font_size = 10,string font_name = "Arial",color text_color = LimeGreen )
{
if (ObjectFind(name_label)!=-1) ObjectDelete(name_label);
ObjectCreate(name_label,OBJ_LABEL,0,0,0,0,0);
ObjectSet(name_label,OBJPROP_CORNER,corner);
ObjectSet(name_label,OBJPROP_XDISTANCE,x);
ObjectSet(name_label,OBJPROP_YDISTANCE,y);
ObjectSetText(name_label,text_label,font_size,font_name,text_color);
}
Comments
Markdown Formatting Guide
# H1
## H2
### H3
**bold text**
*italicized text*
[title](https://www.example.com)

`code`
```
code block
```
> blockquote
- Item 1
- Item 2
1. First item
2. Second item
---