am using a swap strategy with two account with different brokers (hedged accounts). I have the code that sync between the two
account (via two brokers).
i close a BUY order with broker A, my EA send Close message and the SELL order on broker B gets closed. i get profit from [swap minus
commission] on broker B.
i need instead of closing the order on broker B do the following:
the total swap of the SELL order.
the Trailing stop loss by the [swap minus commission] value, e.g if the [swap minus commission] is $50, set the stop loss
so if it gets hit the loss will be $50 max.
the minimum allowed stop loss by broker, and if the needed step (calculated on step 2) is above the minimum , do not set trailing
stop , just close the order with the [swap minus commission] profit.