pair trading / tandem; close all open postions when equity reaches a specific level

 

Hello,

I am looking for a function or EA that closes all open positions when the equity reaches a certain amount. Basically a SL or TP for the entire accont. I want to use it when I open two positions that hedges themselfs. e.g. Balance 1000$ I open two positions manual. Long Dow Jones, short S&P500. When the equity reaches 1050$ (TP) or 950$ (SL) the EA closes both (all) open positions.

Any ideas?

Best and happy holiday,

Sebastian

 

If you are looking for someone code it for you -> Jobs

Otherwise use Account information and Trading functions.

 
sebastianhh: Any ideas?
Since there are no slaves here, you have only three choices: Search for it, learn to code it, or pay someone. We're not going to code it FOR you. We are willing to HELP you when you post your attempt and the nature of your problem.
Reason: