threat: In my case this is not an option, as there are a lot of objects - they are grid lines instead of the standard one. Because of the read only restriction, the ability to "raise" and "lower" objects "by height" is lost. It's a strange and inconvenient limitation. It just gets in the way.
There is a way to programmatically pull the object to the top.
First make the object invisible on all timeframes, then make it visible again.
There is a way to programmatically pull the object to the top.
First, make the object invisible on all timeframes and then make it visible again.
This is how it is done in the panels
How do I move the object to the bottom? You'd better create an additional layer field and sort objects by layers instead of date of creation. Or snap to existing property OBJPROP_ZORDER
In my panels, for example, I hide unnecessary elements outside the chart...
Like this:
//+------------------------------------------------------------------+//| Показывает кнопку |//+------------------------------------------------------------------+void CColorButton::Show(void)
{
//--- Выйти, если элемент уже видимif(CElement::IsVisible())
return;
//--- Сделать видимыми все объектыfor(int i=0; i<CElement::ObjectsElementTotal(); i++)
CElement::Object(i).Timeframes(OBJ_ALL_PERIODS);//--- Состояние видимости
CElement::IsVisible(true);
}
//+------------------------------------------------------------------+//| Скрывает кнопку |//+------------------------------------------------------------------+void CColorButton::Hide(void)
{
//--- Выйти, если элемент скрытif(!CElement::IsVisible())
return;
//--- Скрыть все объектыfor(int i=0; i<CElement::ObjectsElementTotal(); i++)
CElement::Object(i).Timeframes(OBJ_NO_PERIODS);//--- Состояние видимости
CElement::IsVisible(false);
}
//+------------------------------------------------------------------+//| Перерисовка |//+------------------------------------------------------------------+void CColorButton::Reset(void)
{
//--- Выйдем, если элемент выпадающийif(CElement::IsDropdown())
return;
//--- Скрыть и показать
Hide();
Show();
}
Hello. I am facing the following problem - I downloaded metatrader 5 terminal from bx company, everything is fine except that when I run any advisor in the terminal (either built-in or my own) in the strategy tester, the orders do not open. There are no errors in the logs. The same EAs work in other terminals without any problems. Their technical support offers their help and says it is not their problem. Maybe you have some ideas how to open orders in the strategy tester?
Danil Nesterov: Hello. I have got the following problem, I downloaded Metatrader 5 terminal from Bx company, everything is great except that I have no orders open in the strategy tester during the run of any EA (either built-in or my own). There are no errors in the logs. The same EAs work in other terminals without any problems. Their technical support offers their help and says it is not their problem. Maybe you have some ideas how to open orders in the strategy tester?
What is the build of the terminal? If you connect to another trade server in the same terminal (did you know that you can connect to any trade server from one terminal?) - how will the EAs behave?
Insert a screenshot of the strategy tester, tab "Settings" here. Let's see what the settings are there.
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.
In my case this is not an option, as there are a lot of objects - they are grid lines instead of the standard one. Because of the read only restriction, the ability to "raise" and "lower" objects "by height" is lost. It's a strange and inconvenient limitation. It just gets in the way.
There is a way to programmatically pull the object to the top.
First make the object invisible on all timeframes, then make it visible again.
This is exactly how it is done in panels
A strange and inconvenient restriction. It just gets in the way.
This is the object's creation time.
You want the right time for the object - create the object at the right time. What do you want?
This is the object's creation time.
You want the right time at the object - create the object at the right time. How did you want it?
There is a way to programmatically pull the object to the top.
First make the object invisible on all timeframes, then make it visible again.
That's how it's done in the panels
How do you do that? I do not understand ...
In my panels, for example, I hide unnecessary elements outside the chart...
There is a way to programmatically pull the object to the top.
First, make the object invisible on all timeframes and then make it visible again.
This is how it is done in the panels
How's that? I don't understand ...
In my panels, for example, I hide unnecessary elements outside the chart...
Like this:
How's that? I don't understand ...
In my panels, for example, I hide unnecessary elements outside the chart...
Here, for example...
That's exactly the technique I was talking about.
Your method differs from Timeframes(OBJ_NO_PERIODS) in that it doesn't change the order in which the objects are drawn
Here, for example.
This is the technique I was talking about.
Your method differs from Timeframes(OBJ_NO_PERIODS) in that it doesn't change the order in which objects are drawn
I'm confused, I want to clarify Timeframes(OBJ_NO_PERIODS) can change the order in which objects are drawn?
In my case, the order is image A, image B, image C.
By usingOBJ_ALL_PERIODS can the order be changed to any other ? B C A ????
Hello. I have got the following problem, I downloaded Metatrader 5 terminal from Bx company, everything is great except that I have no orders open in the strategy tester during the run of any EA (either built-in or my own). There are no errors in the logs. The same EAs work in other terminals without any problems. Their technical support offers their help and says it is not their problem. Maybe you have some ideas how to open orders in the strategy tester?
What is the build of the terminal? If you connect to another trade server in the same terminal (did you know that you can connect to any trade server from one terminal?) - how will the EAs behave?
Insert a screenshot of the strategy tester, tab "Settings" here. Let's see what the settings are there.