How does MT4 stop out level closes all orders at once?

 

How does MT4 stop out level closes all orders at once?

Is there a way to close all orders at once just like how MT4 does when you hit the stop out level???

OrderClose function could only close one order at a time

Thanks!

 

to save your free margin, keep free margin for more than 100% or you will get margin out. open hedging order for increase margin level.

broker will select older order when closing

 

I mean can I close orders the way stop out level closes?

Is there another function other than OrderClose that closes multiple orders like the way stop out level closes (all at once)???

I mean close all like as in margin call

 
put a close all script into EA, will work, mine works for back test, but has some issue on forward test.
 
What would be the benefit of actually closing all orders at once and closing all orders by looping OrderClose()? Perhaps milliseconds time difference, if that... virtually no benefit.
 

why now a day having this issue !!!

before version is more good!

many broker setting the stop out level to 100%

To low the trade time!

More easy to stop your order!

 
supertrade:
What would be the benefit of actually closing all orders at once and closing all orders by looping OrderClose()? Perhaps milliseconds

tens of seconds and even more sometimes, not milliseconds!


A function to close many orders at once would definitely be helpful but it does not exist. Closing on margin call is done at the server, its not an MT4 function.

Reason: