You can, but only if these orders are on the same instrument. To do this, you need to open an opposite position with a total volume equal to the sum of lots of the positions being closed, and then close the whole situation by overlapping the opposite positions manually by F9 or using the OrderCloseBy() function.
The opening price of the opposite order will be the closing price of all orders. Spreads and commissions are not charged for the opposite overlap.
OrderCloseBy allows you to overlap only 1 opposite order... but by F9 you can do it by a bunch.
Good day. I've got 3 Metatrader standbys and put 3 more on the weekends (different dealers, in order to see what kind of dealers they are). Today I have some kind of nonsense, scripts do not work, EA on demo does not work the way it should (I have not opened several deals), I rebooted the computer - same thing, may be one MetaTrader affects another, has anyone had such a thing by any chance?
Forewarned is forearmed. I've moved it, now it's working.
P.S. Another question, it would also be useful, where can I get quotes history for "EURUSD", "GBPUSD" and "USDJPY"?
Options: Press F2 in terminal (the best way at the stage of TS building), download here, ..... I've been asked many times, if something goes wrong just use site search.
Options: Press F2 in the terminal (the best option, at the stage of "building" the TS); download here, somewhere else .... Asked many times, if anything just use the site search.
Thanks, I'm uploading it. Just doesn't take away the questions. I'm a complete novice.
Tried to do MA with moving StopLosses, didn't work. If it's possible to do it, please tell me how (If impossible, tell me too :)
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.
You can, but only if these orders are on the same instrument. To do this, you need to open an opposite position with a total volume equal to the sum of lots of the positions being closed, and then close the whole situation by overlapping the opposite positions manually by F9 or using the OrderCloseBy() function.
The opening price of the opposite order will be the closing price of all orders. Spreads and commissions are not charged for the opposite overlap.
OrderCloseBy allows you to overlap only 1 opposite order... but by F9 you can do it by a bunch.
Must.
Forewarned is forearmed. Reinstalled it, now it's working.
P.S. Another question, it would also be useful, where to get quotes history for "EURUSD", "GBPUSD" and "USDJPY" ?
Forewarned is forearmed. I've moved it, now it's working.
P.S. Another question, it would also be useful, where can I get quotes history for "EURUSD", "GBPUSD" and "USDJPY"?
Options: Press F2 in terminal (the best way at the stage of TS building), download here, ..... I've been asked many times, if something goes wrong just use site search.
Who can tell me how to know if an order has been closed automatically at S/l(T/P)?
Options: Press F2 in the terminal (the best option, at the stage of "building" the TS); download here, somewhere else .... Asked many times, if anything just use the site search.
Tried to do MA with moving StopLosses, didn't work. If it's possible to do it, please tell me how (If impossible, tell me too :)
I tried it like this:
Also, if such there is that closes orders itself when there is an N number of profits
Please advise if there is one
No - only reduce
>> How do you reduce?
I tried it this way:
>> Put out all the code, there's no smell of stoppers here yet...