Tab: Orders
Order behavior, duplicates, opposites, comments, and grid control
Magic Number
A unique numeric identifier attached to every order opened by this EA instance. Allows the EA to identify and manage only its own orders even when other EAs or manual trades exist on the same account.
Max Simultaneous Trades
Maximum number of open trades allowed at any time. When the limit is reached, new signals are ignored until existing trades are closed. Set to 0 to disable this limit.
Allow Duplicate Signals
If false (recommended), the EA ignores a new signal if there is already an open trade on the same symbol in the same direction from the same channel. Prevents accidentally doubling a position if the same signal is posted twice.
Allow Duplicates from Different Channel
More granular control: allows the same signal (same symbol, same direction) from a different channel even when a duplicate already exists. Useful when following multiple independent signal providers on the same instruments.
Duplicate Signal → Update SL
When a second signal arrives for the same symbol and direction as an already-open trade, instead of opening a new position the EA updates the Stop Loss of all existing positions matching that symbol and direction. The incoming signal must include a SL value for the update to take effect.
Allow Opposite Signals
If false, a SELL signal is ignored when a BUY trade is already open on the same symbol (and vice versa). Enable only if you intentionally want to hedge (hold both BUY and SELL simultaneously).
Allow Opposite Same Channel
More granular: allows opposite signals only when they come from the same channel that opened the current position. Useful for channels that occasionally reverse their signals intentionally.
Close on Opposite — Same Channel
When enabled, if an opposite signal arrives from the same channel that opened the current trade, the EA automatically closes the existing position before (or instead of) opening a new one in the opposite direction.
Close on Opposite — Different Channel
Same behavior as above but triggered by an opposite signal from a different channel than the one that opened the trade.
Custom Comment
Text appended to the comment field of every order opened by this EA. If left empty, the EA uses the channel name as the comment. Useful for labeling trades for later analysis in the account history.
Symbol Prefix / Symbol Suffix
Some brokers add a prefix or suffix to standard symbol names. These fields automatically transform the signal's symbol name to match your broker's format.
m. If broker uses "fxEURUSD", set
Prefix = fx.Delay Before Execution (ms)
Milliseconds to wait after receiving a signal before placing the order. Can be used to avoid entering at the exact signal price spike, or to simulate manual entry timing.
Total Orders (Grid)
Total number of grid orders to open per signal when Execution Mode = GRID. Includes both market orders (opened immediately) and pending orders (placed at defined price levels).
Grid Distance (pips)
Base pip distance between consecutive grid orders. This is the FIXED mode distance. For PROGRESSIVE or VARIABLE mode, see the Grid Distance tab.
Max Market Orders
Maximum number of orders from the grid that can be executed as market orders (at current price) rather than placed as pending orders. The remaining orders in the grid are placed as pending buy/sell limit orders.
Market Distance Threshold (pips)
If the signal's specified entry price is within this many pips of the current market price, the order is executed as a market order instead of a pending limit order. Handles cases where the signal price is essentially "at market".
Min Distance Between Market Orders (pips)
Minimum pip gap required between consecutive market orders. Prevents placing two market orders too close together on fast-moving markets.
Market Execution Margin (pips)
Widens the signal's entry range by this many pips on both sides before deciding how to execute. If the market is still inside the widened range (or has moved in your favour), the EA can fill at market. If the market has run past it (unfavourable), the EA does not chase the price by default: every order is placed as a pending LIMIT back at the signal's range — see Enter At Market If Price Ran Away below to change that. Increase it to accept entries on faster-moving signals; reduce it to be stricter about entry quality. STOP orders ignore this parameter by design.
Enter At Market If Price Ran Away (missed entry)
Decides what happens when a signal arrives and the market has already moved past the entry the provider asked for. Left off, the EA waits with pending orders at the signal price: if price returns you are filled where your provider intended, and if it never returns the signal is simply missed — including the ones that run hundreds of pips without you. Switched on, the EA takes the trade anyway: the first order opens at market and the rest of the grid is re-anchored from the current price. You get into fast moves, at a worse average price than the provider asked for.
Whether it pays depends on your provider. On a slow channel whose entries usually get retraced, leave it off. On entry zones posted for a fast symbol such as gold, where price regularly leaves without you, turn it on and pair it with the distance cap below. Single Order mode does not need this — there, Max Distance For Market Orders already governs it. STOP orders are never affected.
Off (default): the grid goes out as pending limits at 2650, 2644.50, 2640… and waits. Gold must fall 8 dollars before anything fills; if it runs to 2680 instead, you watched the move with nothing open.
On: the first order buys at market at 2658, the rest re-anchor beneath it from 2657.80. You are in the trade.
What it costs: you entered 8 dollars worse than intended. Against the 2635 stop your risk per ounce went from 15 to 23 dollars, and TP1 at 2660 sits 2 dollars away instead of 10.
Expect a shorter grid: re-anchored at 2658 the layers sit closer to the stop, so the same risk budget fits fewer of them — in this example twelve pending orders became seven. The risk is unchanged; the shape of the grid is not.
Max Run-Away Distance To Still Enter (pips)
The brake on the parameter above. If the market has run further than this many pips past the entry, the EA stops chasing and falls back to pending orders. 0 = no limit, which on a fast symbol can mean entering right at the point the move exhausts itself. On gold, 30–50 pips is a sane starting point: far enough to rescue a signal that merely arrived late, close enough to refuse one where the move already happened without you. No effect while the parameter above is off.
Order Expiration (minutes)
How long pending orders remain active before the EA automatically cancels them. Prevents stale pending orders from triggering at unfavorable prices hours after the signal.
Slippage (pips)
Maximum accepted slippage in pips for market order execution. If the broker's execution price deviates more than this from the requested price, the order is rejected. The high default (200) is intentional — it ensures orders always fill even during volatility.
Tolerance Margin (pips)
Extra pip tolerance buffer applied when checking grid spacing conditions. Useful on brokers with variable spreads where exact pip distances may fluctuate slightly.