Welcome Forex EA downloads & MT4/MT5 auto-trading resources — EAs, Gold EAs, quant tools and real-world automation.
Sign In Sign Up

Arbitrage between 2 brokers - MT4/MT5 resources

author EAcpu | 2 reads | 0 comments |
First of all, I want to say that I found so much information about FF here. I hope this helps others on their arbitrage journey.

Now, I have included a zip file with the components required for EURUSD arbitrage between IBFX and Alpari (you can use any 2 brokers you like, you just need to remember which one).

Installation instructions are in a zip file. I also included a zip file containing the Visual Studio 2010 source code for the dll.

I'm here to hope that we can improve on this.

Here’s what happened: It worked. 18 out of every 19 trades were profitable. The only loss was huge. Therefore, I would like some help in improving the EA so that we can reduce our losses. Then I can create all the other pairs that I need.

EA rules:
Input: When the bid price is greater than the spread or freeze level (whichever is larger) of the other terminal's ask price, we enter a short position (buy price terminal) and a long position (ask price terminal). In theory, the price should match. Or at least close.
Exit: When prices become mixed (i.e. the bid price at one terminal is no longer greater than the ask price at the other terminal). Or TP. Or SL.

Now, in theory this sounds good. But I hope others who have experience with this will chime in.

What can we improve?


I have now changed the code to be generic. Terminal 1 and Terminal 2 EAs in the general folder contain the broker's include files that allow sending the settings of TP and SL in the OrderSend() function.

For those who need to send 0 for TP and SL. Use the IBFX Terminal 1 and Terminal 2 EAs and include them in the IBFX folder. These modify the Stop Loss and Take Profit values ​​after opening a position.

Thanks.
-No.
PicsArt_07-22-04.27.54.pnglock-arbitrage-symbols.pngEURUSD.PROM1.pngex1.jpg
PicsArt_07-22-04.27.54.pnglock-arbitrage-symbols.pngEURUSD.PROM1.pngex1.jpg
PicsArt_07-22-04.27.54.pnglock-arbitrage-symbols.pngEURUSD.PROM1.pngex1.jpg
PicsArt_07-22-04.27.54.pnglock-arbitrage-symbols.pngEURUSD.PROM1.pngex1.jpg
PicsArt_07-22-04.27.54.pnglock-arbitrage-symbols.pngEURUSD.PROM1.pngex1.jpg
PicsArt_07-22-04.27.54.pnglock-arbitrage-symbols.pngEURUSD.PROM1.pngex1.jpg

Attachment to original post (1)

📦 Summary of post attachments (2)

Below are all the files (2) shared in the reply.

Verification code Refresh