I will be able to revive this thread a bit. Did anyone found the EA that does exactly what this one posted by cja does but has a option of closing only 1 currency pair orders? I'd think it ought to be usage for a braket trading - if you're trading it by having a taste of buy or sell just you set the order. When the price reaches exactly the level of your bracket you want to cancel the order, that is pretty much what I am doing.
The above EMA does it but if you exchange more than 1 pair it closes down all of the pending orders on most of pairs, not only on the pair you're trading.
Furthermore, if you leave it on the chart, you cannot open any pending orders - it closes down them right after entering so you need to remove the ea in the chart and insert it prior to each use.
I'd think it must have been engineered somewhere. Any idea?