I have a lot of orders that need to be worked out differently what kind of trailing what kind of fixed objectives and set parity but I can not cope with this task because after the deal is closed and opens because of the swap, it changes the ticket number, so I can not use the ticket number to identify the position to know what to do with it.
Please advise how to deal with swap and how to identify a trade and know if I have already set parity on it or not etc.
In these cases the "order magic number" can be actively used.
In these cases, the Magic Number Order can be actively used.
I already use the magic number to identify the three types of signals ... If i have already placed parity for a pose, i should probably think of a way to use the magic number to determine if i have already placed parity. For example, we can give a magic number value to an order, but magic number can not be edited ... or am i wrong ? we can only give it a value when setting the order, but what can we write in the magic number, so we will be able to check if parity has been already set for the order?
I already use it to identify the three types of signals ... If your algorithm is closely related to order identification, then I need to know your algorithm to help me in this case.
If your algorithm is closely related to order identification, then we should know your algorithm to help you in this case.
If your algorithm is closely connected with identification of orders, then to help you in this case, we need to know your algorithm.
I was afraid of this question. The system is quite complicated and difficult to describe in 2 words. I don't want to post the code either as there are thousands of lines of code and no one will understand or worry about them...
I thought there were some common flexible methods to implement order identification ... The magic number is basically what it is for, but it cannot be edited to remember that the order has already been done this or that ...
Maybe it is still possible to edit a magic number?
Yes, this is the question I was afraid of) because the algorithm is not simple ... the system is quite complex and can not be described in 2 words. And to put the code also makes no sense as there are thousands of lines of code and no one will understand and delve into them ...
I thought there are some common flexible tricks to implement identification of orders ... We have a magic number for this purpose, but we cannot edit it to remember what has already been done with this order ...
Maybe it is possible to edit the magic number of an order?
And you convert the opening time to int - there you have two magiks for one position. If you haven't set parity, there is only magik. If you have already set parity, the variable responsible for the presence of set parity will be equal to the time of the position opening, which is denoted by int and the position will have a magic number... :) Dance from there...
extern int LevelProfit = 25; // - Profit level in points, which is necessary to reach in order to transfer its stop to the Breakeven level.
extern int LevelWLoss = 1; // - Breakeven level in points, to which the stop position will be moved after its profit reaches the LevelProfit level in points.
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.
Please advise!
Is there a function that returns the profit value of an open position in pips?
check whether there has been a date change and use the functions
check if the date has been changed and use the functions
How can you control the date? It doesn't change. Look at the screenshot.
I have a lot of orders that need to be worked out differently what kind of trailing what kind of fixed objectives and set parity but I can not cope with this task because after the deal is closed and opens because of the swap, it changes the ticket number, so I can not use the ticket number to identify the position to know what to do with it.
Please advise how to deal with swap and how to identify a trade and know if I have already set parity on it or not etc.
In these cases the "order magic number" can be actively used.
In these cases, the Magic Number Order can be actively used.
I already use the magic number to identify the three types of signals ... If i have already placed parity for a pose, i should probably think of a way to use the magic number to determine if i have already placed parity. For example, we can give a magic number value to an order, but magic number can not be edited ... or am i wrong ? we can only give it a value when setting the order, but what can we write in the magic number, so we will be able to check if parity has been already set for the order?
I already use it to identify the three types of signals ... If your algorithm is closely related to order identification, then I need to know your algorithm to help me in this case.
If your algorithm is closely related to order identification, then we should know your algorithm to help you in this case.
If your algorithm is closely connected with identification of orders, then to help you in this case, we need to know your algorithm.
I was afraid of this question. The system is quite complicated and difficult to describe in 2 words. I don't want to post the code either as there are thousands of lines of code and no one will understand or worry about them...
I thought there were some common flexible methods to implement order identification ... The magic number is basically what it is for, but it cannot be edited to remember that the order has already been done this or that ...
Maybe it is still possible to edit a magic number?
How do you control the date? It doesn't change. Look at the screenshot.
Yes, this is the question I was afraid of) because the algorithm is not simple ... the system is quite complex and can not be described in 2 words. And to put the code also makes no sense as there are thousands of lines of code and no one will understand and delve into them ...
I thought there are some common flexible tricks to implement identification of orders ... We have a magic number for this purpose, but we cannot edit it to remember what has already been done with this order ...
Maybe it is possible to edit the magic number of an order?
Dance from there...
Hi!
I can not understand why the opened orders are not modified, the modification condition is a profit above 5 pips.
//+------------------------------------------------------------------+