I have two live mt4 brokers. 1 pays carry trade interest, other does not pay or charge.
so ea must 5 minutes before the broker pays carry interest for the day scan the ask and bid difference between the two brokers, then compare the difference with the carry interest pay out on the fx pair and if the spread difference is less than the carry payout, then place 2 hedged orders with the two brokers.
1 trade to capture the positive carry payout, the other to hedge that trade. If carry positive is buy, then hedge will be sell.
then say 5 minutes after the payout to simultaneously close out both trades.
so, the objective of the ea is that it will take two perfectly hedged trades to take advantage of the carry interest payout, whilst making sure that the spread of the two round trades will be less than the interest earned.