Expert Advisor for Hedging + Scalping Between 2 Accounts Terminal Connection (Complex HFT EA)

Job finished

Execution time 44 days
Feedback from customer
The developer is very patient and understanding. Always tries to cooperate with me and helps me with navigating how my own EA Works👍👍👍
Feedback from employee
Amazing client — patient, clear, and very understanding throughout. A real pleasure to work with. Would gladly collaborate again!

Specification

Overview:

The goal is to develop an Expert Advisor (EA) capable of executing automated hedging and scalping strategies between two separate account terminals on the Meta Trader 5 platform. This EA will ensure high-speed execution (ideally between 1-20 milliseconds), maximizing profitability while adhering to user-defined parameters. It will support a single trading instrument at a time across various asset classes (crypto, forex, commodities, indices).

Functional Requirements:


HEDGING PART

The EA must:

Open complementary BUY and SELL orders across two separate accounts.

Example:

Account A: 2 BUY positions, 1 SELL position.

Account B: 2 SELL positions, 1 BUY position.

The number of order positions opened is non-adjustable, but the value of each position is adjustable.

Support hedging for a single trading instrument per session to optimize performance.

Automatically terminate operation under the following conditions:

Accounts or instruments are modified during active trading.

Lay the foundation for the scalping process by ensuring that the hedging process is successfully executed prior to initiating scalping.


SCALPING EXECUTION

The EA must:

Initiate scalping only after profitable conditions are confirmed for current open positions. (More info will be given in comment)

Profit calculation must account for:

Spreads of Instruments traded. (Depends on Type of Account and Brokers)

Execute trade closures within 1-20 milliseconds to secure profits.

Never close any position in loss, except when:

Stop Loss Mode is manually enabled (default: OFF) with a customizable stop-loss value (default: 10 pips) using pips to measure distance of SL.

Stop Loss cannot be used onto Accounts with LIGHT-Sell or LIGHT-Buy. Meaning that if the Accounts is BUY-Heavy, then SL is available same thing as SELL-Heavy account.

Stop Loss executions NEED to be lightning fast. Both Setup and Executions of SL onto Both Accounts need to be AT THE SAME TIME.

Operate independently across both accounts:

Account A: Secure profits for positions where confirmed, while awaiting other positions to turn profitable.

Account B: Mirror the same scalping logic. But inverted.


Each time the EA is attached, it creates a "Generation" (Gen) of trading activities.

Generations are displayed sequentially on the chart (e.g., Gen 1, Gen 2, etc.).

Generation timing is customizable in EA settings (default: 600 seconds).

Automatic alternation of trading roles across accounts for each new Generation:

Gen 1: Account A (BUY-heavy), Account B (SELL-heavy).

Gen 2: Reverse roles (Account A becomes SELL-heavy, Account B becomes BUY-heavy).

Continues in this manner for subsequent Generations.


The EA establishes direct socket communication between the two terminals to synchronize trading activities.

Server ports must be configurable through EA settings (e.g., Server Port = 30303,30302 ).

Symbol on Brokers must be inserted in the settings for further calibrations (e.g., Symbol = BTCUSD, XBRUSD)

Works for both Accounts in settings.


Offers Sandbox Mode for continuous trading without predefined strategies.

Ensures that all scalping actions adhere strictly to indicator-confirmed profit conditions.


Supports user-defined lot size configurations:

BUY and SELL lot sizes must remain identical across both accounts.

Compatible with any leverage level.

Includes an optional compounding feature (Default settings: False)

When enabled, profits are reinvested into subsequent trades.


Execution Speed

Opening and closing of trades must be processed within 1-20 milliseconds.

Customizable Parameters

Generation Duration: Adjustable (default: 600 seconds).

Stop Loss Mode: Disabled by default, customizable to preferred pip distances.

Server Ports: Configurable through settings.

Error Handling

The EA must automatically shut down if:

Account terminals or trading instruments are modified mid-operation.

Communication disruptions occur between terminals.

Platform Compatibility

Fully compatible with Meta Trader 5.

Operates across multiple asset classes:

Cryptocurrencies

Commodities

Indices

ALL ASSET CLASS AND INSTRUMENT


✔ Hedging Across Accounts: Simultaneously opens complementary positions on two terminals.

✔ High-Speed Scalping: Executes trades within 1-20 milliseconds.

✔ Generational Logic: Organizes trading cycles with role alternations.

✔ No Pre-Defined Strategies: Sandbox Mode.

✔ Direct Communication: Seamless synchronization using socket connections. Server Port

✔ Dynamic Configurations: Flexible lot sizing, leverage options, and profit-compounding.


Notes for Developers: The EA should be built with high performance and minimal latency in mind, ensuring smooth execution even during volatile market conditions. Please assess the complexity and cost of development based on the provided specifications and communicate any potential limitations or additional requirements.

Responded

1
Developer 1
Rating
(429)
Projects
628
54%
Arbitration
30
53% / 23%
Overdue
6
1%
Loaded
2
Developer 2
Rating
(16)
Projects
35
23%
Arbitration
4
0% / 50%
Overdue
2
6%
Working
3
Developer 3
Rating
(3)
Projects
4
0%
Arbitration
0
Overdue
0
Free
4
Developer 4
Rating
(467)
Projects
486
75%
Arbitration
6
67% / 17%
Overdue
0
Working
5
Developer 5
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
6
Developer 6
Rating
(2)
Projects
3
0%
Arbitration
8
13% / 88%
Overdue
1
33%
Free
Similar orders
Hi I have a simple task (hopefully) I have a custom strategy that I built with the help of Claude Anthropic - everything is finished and I zipped it with power shell but when importing it NT8 gives me the error message that the file was made from an older, incompatible version or not a NinjaScript. My folder structure is correct as far I can see so I don't know what the issues is and it's costing me too much to go
Subject: Development of Ultra-High Precision Confluence Indicator - M1 Binary Options (Non-Repaint) ​ Hello, I am looking for a Senior MQL5 Developer to create a custom "Surgical Precision" indicator for MetaTrader 5, specifically optimized for 1-minute (M1) Binary Options trading. The system must integrate three distinct layers of algorithmic analysis. ​ 1. Core Logic: Triple-Layer Confluence ​The signal (Call/Put)
Looking for an experienced MQL5 developer to design and develop a custom Expert Advisor (EA) for MetaTrader 5. The purpose of this EA is not just automated trading, but also to help me better structure, test, and refine my personal trading strategy
Hi, I need a simple MT5 EA. Based on my simple trading strategy I'm going to discuss with you If you have experience in this kindly bid for this project Thanks
Automated trading system 150 - 250 USD
Anyone I need my own bot with my own licenses keys I will pay up please the bot must make good profit and I will pay up good money just hope it helps me
I would like to create a robot with the smart money concepts, that integrates order block,FVG,supply & demand ,read the market structure,liquidity and also trade with the session and also after a liquidity sweep a market structure is needed to verify the reversal and a retracement to the order block and sometimes fair value Gap
iwant to get indicator for both trades including forex gold algo and other . all FOREX MT 5 TRADING MARKETING must be analyses by and give me indicator or signal on how or where market go next at a specific time
Data Integrity 500 - 1000 USD
The trading bot is an automated software system designed to monitor financial markets, execute trades, and manage risk based on predefined strategies. The bot aims to maximize profits while minimizing human intervention and emotional decision-making. Scope: Supports automated trading on selected exchanges (e.g., Binance, Bitget, Coinbase). Executes trades based on technical indicators, signals, or AI models. Provides
Would it be possible to connect Futures prop firm with Rithmic or Tradeovate platform to Ninjatrader automated trading ? If anyone can do this for me I will be happy to get started with the person right away
I need help in modifying an amibroker AFL indicator the indicator already works but I need per symbol static variable isolation, parameters persistence per symbol after restart, non declining trailing stop logic, parameter auto restore when switching symbols and a global reset function for static variables. For better understanding As discussed, this is the official offer for restructuring my RAD Chandelier stop loss

Project information

Budget
100+ USD
Deadline
from 7 to 30 day(s)