Advertisement IC Markets

Order modification limits and the flood of requests

Share, develop, and backtest custom MQL4/MQL5 Expert Advisors, Python data-scraping scripts, trading bots, and automated market alert systems.
Post Reply
Fairman
Posts: 7554
Joined: Tue Jul 21, 2026 7:11 am
Location: Abuja

Order modification limits and the flood of requests

Post by Fairman »

Order modification limits and the flood of requests

A trailing stop that updates every tick sends a modification request to the broker each time price moves. In fast markets that can mean dozens of requests per second.

Brokers protect their servers with rate limits. Exceed them and requests get rejected, delayed, or in the worst case the account gets temporarily blocked from trading. Some firms treat heavy modification traffic as abusive behaviour.

Better design is updating the stop only when it has moved by a meaningful amount, such as a pip or more, or at fixed time intervals. That cuts the traffic dramatically with little loss of effectiveness.

Order-to-trade ratio is another number brokers watch. An account with thousands of modifications and cancellations per executed trade attracts attention.

It is worth reading the broker's policy on request frequency and testing the expert advisor's output in a quiet moment to see how many messages it really sends.

A clean fix is rate-limiting inside the code: store the time of the last modification and refuse another within a set interval, such as 250 milliseconds, unless the change is larger than a threshold.

How many modification requests does the system send during a busy minute?
It’s Fairman :geek:
Recommended broker for automated trading & scalping IC Markets
FXS HongKong Scalper
Posts: 727
Joined: Sat Oct 24, 2026 10:15 pm

Re: Order modification limits and the flood of requests

Post by FXS HongKong Scalper »

Fairman wrote: Order modification limits and the flood of requests A trailing stop that updates every tick sends a modification request to the broker each time price moves.
Trailing in steps, such as moving the stop only after a full pip, reduces requests. Server-side trailing, where available, avoids the problem entirely. Some brokers publish modification limits per minute, and a trail that respects them, for example updating at most once every few seconds, avoids the temporary block entirely.
FXS Official Team | Hong Kong Session Desk
Amanhasnoname
Posts: 2602
Joined: Fri Oct 30, 2026 9:45 am

Re: Order modification limits and the flood of requests

Post by Amanhasnoname »

Stepped trailing is the simplest fix, and it helps to tie the step to the pair's typical spread rather than a fixed figure. Moving the stop only once price has gained at least a pip or two beyond the last update, and only on a closed tick or a short timer, can cut the request count by a huge margin while barely changing where the stop ends up. A minimum interval combined with a minimum distance, as you describe, covers both the slow grind and the sudden spike.

The pitfall people miss is retries. When a modification is rejected for being too close to price or hitting a rate limit, a lot of code simply tries again on the next tick, which turns one rejection into a storm. Read the error code, back off for a set period, and log every rejection with its reason so you can see what the broker is actually objecting to.

Before going live it is worth running the EA on demo during a news release and counting requests per minute from the journal or your own log. Compare that with any limits the broker publishes, and check whether server-side trailing or a plain fixed stop with a partial take profit would achieve most of the same result with far less traffic.
Post Reply