Any rookie question, so as not to clutter up the forum. Professionals, don't pass by. Nowhere without you - 6. - page 415

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
OrderProfit()
If you need exactly the last order to open, then go through all the orders and choose the one with the latest open time, then use the above function, which will return to you the net profit of this order
How I get an answer just in time, just at the moment when I find a solution. :)
But thanks anyway!
Ekburg К сожалению времени и возможности написать Вам готовый код нет, так как я на работе нахожусь))
You do not search by history, but by current positions, here is a logical chain based on which you can try to write code:
[block of working with muwings and placing an order]
1 remember the ticket and the magic number of the placed order
2 monitor the number of orders and if there are no orders in the market (it means that our order has been closed), then go to point3 or monitor this specific order until its close time is more than zero, in which case we exclude points 3 and 4
3 find our order
4 find out if it is closed
5 find out how it was closed
6 if it was closed through a stop, set another order different from it in the direction
This is what I have. It really opens 3 lots. I am really screwed. Can you correct the code? What's wrong?
Which variable is responsible for the current price value?
I searched documentation, there's nothing except Bid, Ask, POINT_HIGH, POINT_LOW.
Does such variable even exist?
I'm sick and tired of asking these questions (incredibly nerve-wracking, pi****, sorry (fucking variables I can't find (mostly annoying, what I can't find myself))).
Which variable is responsible for the current price value?
I searched documentation, there's nothing except Bid, Ask, POINT_HIGH, POINT_LOW.
Does such variable even exist?
How timely I get an answer, just when I find a solution. :)
Have you noticed how the price changes in the Market Watch window? There you can see the Bid and Ask - these are the current prices. The first is used to sell and the second to buy.
Forgot such a little thing!
The solution is: "Don't rush to ask questions". And, considering that you don't always get competent answers... :)))
That's right!!!
Forgot such a little thing!!!
Yeah, yeah. :)
Maybe you should try answering other people's questions rather than asking your own. The benefits are much greater (Up to a point), certainly the benefits to yourself
Maybe you should try answering other people's questions rather than asking your own. The benefits are much greater (up to a point), of course the benefits to yourself
If I do not give the right answer, I will be "beaten". :)
You answer correctly, like a real student in an exam:- you can't say I don't know - you have to say I forgot))).