С появлением двух новых свойств стало возможным загружать одно изображение с набором из нескольких картинок. Такая технология давно используется в web-дизайне и получила название Спрайт: Важно: для использования свойств OBJPROP_XOFFSET и OBJPROP_YOFFSET обязательно указывайте размер области видимости с помощью свойств OBJPROP_XSIZE и...
voidOnStart()
{
int Property = CHART_SHOW; // Если указать тип ENUM_CHART_PROPERTY_INTEGER, то ошибка исчезаетPrint(ChartGetInteger(0, Property)); // 'ChartGetInteger' - no one of the overloads can be applied to the function call
}
//+------------------------------------------------------------------+//| Функция определяет, является ли данное окно или подокно графика |//| видимым. |//+------------------------------------------------------------------+bool ChartWindowsIsVisible(bool &result,constlong chart_ID=0,constint sub_window=0)
{
//--- подготовим переменную для получения значения свойстваlong value;
//--- сбросим значение ошибкиResetLastError();
//--- получим значение свойстваif(!ChartGetInteger(chart_ID,CHART_WINDOW_IS_VISIBLE,sub_window,value))
{
//--- выведем сообщение об ошибке в журнал "Эксперты"Print(__FUNCTION__+", Error Code = ",GetLastError());
return(false);
}
//--- запомним в переменную значение свойства графика
result=value;
//--- успешное выполнениеreturn(true);
}
How to make a subwindow invisible and the main subwindow visible?
В этом разделе представлены примеры для работы со свойствами графика. Для каждого свойства приведены одна или две законченные функции, которые позволяют задавать/получать значение этого свойства. Эти функции можно использовать в своих MQL5 программах как есть. На рисунке показана графическая панель для наглядной демонстрации того, как изменение...
Hello! What is the metatrader glitch on the eurodollar chart? A daily candle for Sunday 9.10.2011 appeared, on the hour chart there is only one hour 23:00 for that date. This is probably due to the change of clocks to winter time. How to fix it? There was no such candle before.
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.
The video is not displayed.
I've studied this code very carefully, but can't figure out why this is happening
Is this a bug in the custom resource or am I doing something wrong?
I've studied this code very carefully, but can't figure out why this is happening
Is this a bug in custom resource or am I doing something wrong?
The script finishes and removes the graphic (you can put Sleep() at the very end to check).
The script finishes and deletes the graphic (Sleep() can be put at the very end to check).
This is not the case.
It wasn't.
Yes, that's right, I also had Destroy() called.
How to make a subwindow invisible and the main subwindow visible?
Explain how the CHART_WINDOW_IS_VISIBLE property(read-only) can be applied?
Hello! What is the metatrader glitch on the eurodollar chart? A daily candle for Sunday 9.10.2011 appeared, on the hour chart there is only one hour 23:00 for that date. This is probably due to the change of clocks to winter time. How to fix it? There was no such candle before.
Bug
More likely a mistake in the documentation
In fact, property_id has always been ENUM_CHART_PROPERTY_INTEGER
More likely a mistake in the documentation
In fact, property_id has always been ENUM_CHART_PROPERTY_INTEGER
Exactly!