Good evening! I'm writing a function and it creates a graphical object, but it sticks it right in the corner, regardless of the coordinates. Please take a look at it, if you can!
void objectCreate(string Name, int a_x, int a_y, string a_text = "_", int a_fontsize = 60, string a_fontname = "Arial", color a_color = -1) {
if (a_fontsize == 60) a_fontsize = 3 * FontSize;
ObjectCreate(0,Name, OBJ_LABEL, 0, 0, 0);//Создает объект "Текстовая метка" ObjectSetInteger(0,Name, OBJPROP_CORNER, CORNER_LEFT_UPPER);//Задает Угол графика для привязки графического объекта,//Центр координат в левом верхнем углу графикаObjectSetInteger(0,Name,OBJPROP_XOFFSET,a_x);//Дистанция в пикселях по оси X от угла привязкиObjectSetInteger(0,Name,OBJPROP_YOFFSET,a_y);//Дистанция в пикселях по оси Y от угла привязкиObjectSetInteger(0,Name,OBJPROP_FONTSIZE,a_fontsize);// Размер шрифтаObjectSetString(0,Name,OBJPROP_TEXT,a_text);//Задает Имя объектаObjectSetInteger(0,Name,OBJPROP_COLOR,a_color);
}
Не секрет, что большую часть информации об окружающем мире человек получает при помощи зрения. Справедливо это и в такой области как трейдинг. Новая платформа MetaTrader 5 и язык MQL5 открывают новые возможности для представления визуальной информации трейдеру. В данной статье предлагается универсальная и расширяемая система классов, которая берет на себя всю черновую работу по организации вывода произвольной текстовой информации.
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
Just checked in VS2010 :) it works.
It gives out sizeof == 1.
Yes, it's working, thanks again.
Karlson , а в какой строке набирать команду , в командной строке (в стандарте Винды) забит пользователь?
Karlson:terminal uses a different folder.
Run it with the /portable switch, then it will use its own folder.
D:\.....\terminal.exe /portable
Thanks, gives an error "the path is wrong" tried with a space, without, the result is the same
Remove the inverted commas:
http://screencast.com/t/Gy2rvvTX73
Remove the inverted commas:
http://screencast.com/t/Gy2rvvTX73
Since it has spaces in the path, the quotes are still needed, but a little wrong.
Vin22, try this: "C:/Program Files/bla-bla-bla-bla/terminal.exe" /portable
You just don't know how to cook ))))
The /portable key gives access to the indicators folder where the terminal is installed.
Otherwise it is in C:\Users\ or C:\Documents and Settings\.
Type /portable in the forum search box and you will get several results with explanations.
There seems to be another issue with UAC - User Account Control - search the forum.
https://www.mql5.com/ru/search#!keyword=/portable
https://www.mql5.com/ru/forum/3896/71601#comment_71601