Forex cashback , EA development, EA shop

EADevelopment >> Project Details

Dual account hedging trading tool

Watch the demo on Youtube

Dual account hedging trading tool

Project Requirements

Total project requirements:


This project requires that two accounts A and B realize fully hedged transactions.


When A opens a position, B immediately opens a position at the same time, with the same currency pair, the same number of lots, but in the opposite direction, that is, if A places a buy order, B places a sell order. And vice versa.


When B opens a position, A immediately opens a position at the same time, with the same currency pair, the same number of lots, but in the opposite direction, that is, if B places a buy order, A places a sell order. And vice versa.


When A or B closes a position, the corresponding account immediately closes the matching order.


The matching rule is: same currency pair, same number of lots, opening time within X seconds, opposite transaction direction.


For example, if A closes a buy order of 0.1 lot of EURUSD, B closes a sell order of 0.1 lot of EURUSD, and the opening time difference of the two orders is within 10 seconds.


Notes:


The currency pair names of the two accounts AB may be different and need to be converted. For example, A is GOLD, and B may be XAUUSD.


The currency pairs of the two accounts AB may have suffixes that need to be converted. For example, if A is EURUSD, B may be EURUSDm, EURUSDk, etc.


The server time of the two accounts AB is different, so conversion may be required.


When an order in AB fails to close, you can try multiple times to ensure that the trading volume of AB is always balanced.


A trading panel needs to be made to observe the order matching of the two accounts.