There are many ways to do this. By and large, you need to find a way to link these two orders.
For example, give them the same unique wizard at once. Or write something identifying in the comments.
It also depends on the implementation. For example if both orders are placed together and there is no other way, then it is sufficient to check the presence of both, and if one is missing, delete the other.
They are placed together and not in any other way. If you don't mind, could you please write this code...)
TheXpert: Sure. I'm puzzling over how to find out which window to draw objects in in order to write the tool and the price.
Should I make an additional vertical sub-window on the right if it's not too difficult? Or even draw each row in its own sub-window, together with the name of the pair and the price...
OK, it's probably a bit small for a base. Or I'll put it down later, dunno. But +1 to the hidden possibilities of the terminal :)
The beauty of the tool is that you can configure several indices to be displayed together in one subwindow. For example to save space. When combined, it gets really big.
For this purpose, the following properties are used
extern int Number = 1;
The serial number of the indicator in the sub-window. If we want to have 5 indices in one window, we have to set their numbers from 1 to 5.
extern int Overall = 1;
set the total number of indices in the window. I.e. for 5 indices 5.
It's about the same as in the ToR. Only it is very shallow if we combine up to 4-5 charts in sub-window and there is not enough pair name and current price on the right.
Scale value has no effect on chart height, it seems PercentScale is not activated anywhere.
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.
There are many ways to do this. By and large, you need to find a way to link these two orders.
For example, give them the same unique wizard at once. Or write something identifying in the comments.
It also depends on the implementation. For example if both orders are placed together and there is no other way, then it is sufficient to check the presence of both, and if one is missing, delete the other.
By and large I did.
Sure. I'm puzzling over how to find out which window to draw objects in in order to write the tool and the price.
Should I make an additional vertical sub-window on the right if it's not too difficult? Or even draw each row in its own sub-window, together with the name of the pair and the price...
Or even draw each row in its own sub-window, together with the name of the pair and the price...
Right?
Then the highlight is lost.
OK, it's probably a bit small for a base. Or I'll put it down later, dunno. But +1 to the hidden possibilities of the terminal :)
The beauty of the tool is that you can configure several indices to be displayed together in one subwindow. For example to save space. When combined, it gets really big.
For this purpose, the following properties are used
extern int Number = 1;
The serial number of the indicator in the sub-window. If we want to have 5 indices in one window, we have to set their numbers from 1 to 5.
extern int Overall = 1;
set the total number of indices in the window. I.e. for 5 indices 5.
extern double PercentScale = 1;
Scale. 1 unit - 1% of the price change.
There is a template for 5 pairs in the archive. For H4.
It's about the same as in the ToR. Only it is very shallow if we combine up to 4-5 charts in sub-window and there is not enough pair name and current price on the right.
Scale value has no effect on chart height, it seems PercentScale is not activated anywhere.