Spécifications
I 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).
When 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.
What i need instead of closing the order on broker B do the following:
- Get the total swap of the SELL order.
- Set 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.
- Check 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.
Répondu
1
Évaluation
Projets
45
20%
Arbitrage
24
29%
/
42%
En retard
12
27%
Travail
2
Évaluation
Projets
395
28%
Arbitrage
69
19%
/
49%
En retard
120
30%
Gratuit
3
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
4
Évaluation
Projets
4
0%
Arbitrage
1
0%
/
100%
En retard
1
25%
Gratuit
Informations sur le projet
Budget
30+ USD
Pour le développeur
27
USD
Délais
à 10 jour(s)