is there any script (or ea) for closing all open positions from only one pair??

Mirror813

Recruit
Messages
5
Hello and sorry for my English.
I have seen (and sometimes used) scripts (and I know there are also expert advisors) that close all (pending or market) open positions, or that close only market positions, or that close only pending positions, or that close only selling operations, or that close only buying positions ......, but I have never seen any script or expert advisor that allows us to close only all the positions that we have open (pending or market orders) of a certain specific pair (for example, that allows us to close only all the operations that we have open from the eur-usd, or that allows us to close only all the operations that we have open from the gbp-usd, or that allows us to close only all the operations that we have open from any other pair, both if they are selling or buying positions, and if they are market or pending positions).
I try to explain better:
Imagine that at the same time I have several positions open from the eur-usd (selling all of them), and several positions from the gbp-usd (buying all of them), and several positions from the aud-usd (selling all of them), and several positions from the usd-cad (buying all of them, and there comes a time when I finally see that the positions that I have open for the eur-usd pair are giving me the benefit that I was waiting for, so I would be interested to close them all as much quickly as possible, but at the same time, I want to keep still open all my gbp-usd, aud-usd, and usd-cad positions, as they are still in loss.
Is there or could someone create a script (or expert advisor) that would allow us to automatically and quickly close only the positions of the pair that we are interested in (that is, for example, to close only all the positions that we have open from the eur-usd, but not the positions we have open from any other pairs) ????
Is there or would it be very difficult to create any script (or expert advisor) that would allow us to do that, at least with respect to the main pairs that most of us use to use, which I imagine are the 7 or 8 pairs that usually have lower spreads?
Thank you in advance.
 
if you find one that would be great i would like to be able to close all trades at once rather then 1 at a time on my MT4 account
 
The EA I use has a magic number function and providing the several positions on a pair are in overall profit closing the first will close all.
 
Try this :
the_closer.png
 

Attachments

  • TheCloserFPA.zip
    55.5 KB · Views: 211
Back
Top