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

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
In my example: random order number, volume - 5, at close price, with slippage 0, no arrow.
In the document example: calculation of order number by order_id, volume 1, by close price, with slippage 3, arrow is red.
Clever as hell, but there's one thing, See highlighted, you write Symbol().
Something like thisAnd the code, "How?", is simple.
Somehow
And get a code that closes all positions at a potential profit of $50.
Thank you very much!
Now everything is clear!
Cool! :)
Mind you, I understand that when I close, the EA just doesn't see the orders on the symbol and the meigic that it needs to close. And that's it............
Yes, there was also a variant of this. Only one order was closed, and the 10 pips profit condition was not met. In short, it was bullshit.
Hello, all! Help me, smart people. I'm setting Profit=10 pips (i.e. when I get a total profit of two pairs equal to 10 pips) both open deals should be closed. However, my trades are not being closed. Where is the error?
Mind you, I understand that when I close, the EA just doesn't see the orders on the symbol and the meigic that it needs to close. And that's it............
Yes, there was one more variant. A trade was closing only one position, while the condition of the profit of 10 points was not fulfilled. Anyway, it was bullshit.
1. We should close the position using the ask or bid of the instrument, for which it is opened
not like you do with OrderClosePrice()
write it this way
Something like this1. We close the position using the asc or bid of the instrument for which it is opened
not like you do with OrderClosePrice()
write it this way
Something like thisHello, all! Help me, smart people. I'm setting Profit=10 pips (i.e. when I get a total profit of two pairs equal to 10 pips) both open deals should be closed. However, my trades are not being closed. Where is the error?
Mind you, I understand that when I close, the EA just doesn't see the orders on the symbol and the meigic that it needs to close. And that's it............
Yes, there was also an option like this. The deal has been closed only once and the 10 pips profit condition has not been respected. In short, it was bullshit.
Error on error. Maybe this will make something work:
???
Done, but that doesn't solve the problem with the owl above. I think when closing, the EA just doesn't see the orders on the symbol and the majors it needs to close.
It should not see either symbol or magik, everything is correct in your EA. Look at the logs to see what kind of error it produces.
Error on error. Maybe this will make it work:
???
Please point out, kindly, where you found "error upon error".