Alexey Kozitsyn: Not exactly. The OrderStopLoss() and OrderTakeProfit() only return the values of SL and TP of the order. If we want to analyze at what price the order was closed, we should use OrderClosePrice(), and even better OrderComment(), since [sl] and [tp] are written in the comment in case of closing by SL and TP respectively. So, once you have selected an order, analyse its comment.
Thanks for the tip, to be honest I'm a complete zero in programming. But I want to sound a profitable trading advisor, I've been searching for a long time, but have not found anything like this.
If I understand correctly, the first comes theOrdersHistoryTotal code; then I need theOrderComment code; and only thenOrderStopLoss withPlaySound; andOrderTakeProfit with PlaySound... If I'm mistaken about something, please correct me.
Thanks for the tip, to be honest I'm a complete zero in programming. But I want to sound a profitable trading advisor, I've been searching for a long time, but have not found anything like this.
If I understand correctly, the first comes theOrdersHistoryTotal code; then I need theOrderComment code; and only thenOrderStopLoss withPlaySound; andOrderTakeProfit with PlaySound... If I'm wrong, please correct me.
Let's put it this way. You show the code that goes through the orders with an explanation of how it should do this, and only then we will be able to say what is right and what is wrong. Just the names of functions will not bring you closer to the result.
i have an owl, on tests with one order and one symbol it shows everything perfectly, but when i placed a few dozen on different pairs it stopped working. If i look at the chart, i will notice that it removes from the chart after the first trigger, not after the last order is closed for the current symbol ignoring those irrelevant to the current chart. The work with the pending orders is not initially provided for. The purpose is not to fix it, but rather to understand why it does not work as intended and how to learn to fix it.
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.
Every second, the alarm goes off.
That's right, every tick counts again
I'm ready to give money to people who can help me)))
I'm ready to give money to people who will help me)))
Well, that's for freelancers.
Can you tell me where to contact them?
At the top there is a blue field with links, click on'Freelance'.
But maybe someone will do it for free.
At the top there is a blue field with links, click on'Freelance'.
But maybe someone will do it for free.
Not exactly. The OrderStopLoss() and OrderTakeProfit() only return the values of SL and TP of the order. If we want to analyze at what price the order was closed, we should use OrderClosePrice(), and even better OrderComment(), since [sl] and [tp] are written in the comment in case of closing by SL and TP respectively. So, once you have selected an order, analyse its comment.
Thanks for the tip, to be honest I'm a complete zero in programming. But I want to sound a profitable trading advisor, I've been searching for a long time, but have not found anything like this.
If I understand correctly, the first comes theOrdersHistoryTotal code; then I need theOrderComment code; and only thenOrderStopLoss withPlaySound; andOrderTakeProfit with PlaySound... If I'm mistaken about something, please correct me.
Thanks for the tip, to be honest I'm a complete zero in programming. But I want to sound a profitable trading advisor, I've been searching for a long time, but have not found anything like this.
If I understand correctly, the first comes theOrdersHistoryTotal code; then I need theOrderComment code; and only thenOrderStopLoss withPlaySound; andOrderTakeProfit with PlaySound... If I'm wrong, please correct me.
Hi all, in turn here is the following question
i have an owl, on tests with one order and one symbol it shows everything perfectly, but when i placed a few dozen on different pairs it stopped working. If i look at the chart, i will notice that it removes from the chart after the first trigger, not after the last order is closed for the current symbol ignoring those irrelevant to the current chart. The work with the pending orders is not initially provided for. The purpose is not to fix it, but rather to understand why it does not work as intended and how to learn to fix it.