TradingPactBETA
Menu
GUIDES · MT5 Sizing & Desk ExecutionDesk execution & risk math

Desk Orders, Partial Exits & Position Management Guide

How the TradingPact Desk routes market and pending orders through Order Review, enforces input-change invalidation, arms conditional entry criteria, pairs OCO Order Groups, and manages live positions with partial exits and tighten-only R-trails.

Knowing your per-trade risk percentage is only half of execution discipline. The second half happens between sizing and exit: staging market or pending orders cleanly, recalculating checks if you drag a stop mid-thought, pairing breakout levels without double-spending your risk budget, taking partial profits without dropping your stop, and knowing exactly which rules run pre-trade versus after a fill in MT5.

The TradingPact Desk (MT5 only) routes every entry, armed watch, paired group, partial exit, and trail preset through explicit per-account permissions, deterministic pre-trade checks, and immutable receipts.

Three states of the TradingPact Desk across one session: Armed, Heating, and Held
Desk entry states across the session: Armed when daily room is clear, Heating past halfway, and Held once the daily limit is reached while position management stays open.

Order bar, ticket modes, and execution settings

Order bar, Quick Trade, and the mobile session console

Along the bottom of the Desk chart sits the two-tone order wedge: SHORT priced at the live BID and LONG priced at the live ASK, with the live decimal spread printed on the center seam.

  • Quick Trade: Selecting Long or Short opens the fast-track Quick Trade ticket (quick-trade.tsx). You can adjust levels on the chart or numerically, flip direction (mirroring stop and target around entry to preserve distance and R), attach an optional written pre-flight check, or use Paste trade details (LiteralTradeInput) to transcribe literal text (Buy XAUUSD entry ... stop ... target ... risk ...) directly into fields without AI inference or hidden permissions.
  • Mobile session console: On phone screens (mobile-console.tsx), the bottom slab combines the live daily loss-room lip meter, open position and working order counts, floating P&L, the Long/Short wedge, the chart tools capsule, and 5 navigation tabs (Chart, Ideas, Context, Ask AI, More). Tapping an open row expands the swipeable Position Sheet (position-sheet.tsx) with live unrealized P&L, R progress, one-tick price steppers, and the exact same confirmation reviews used on desktop.

Market vs pending ticket modes and expiry presets

Depending on your account's enabled execution permissions, the Desk ticket supports 5 entry modes:

Ticket modeHow it entersRequired permissionExpiry behavior
AutoFollows entry vs live price: fills at market inside the market band, or stages Limit/Stop outside itMarket (plus Limit & stop orders for pending)Applies if resolved to pending
MarketDispatches immediately at current ASK (Buy) or BID (Sell)Market (included by default)Bounds the TradingPact send window only
LimitWaits at a better entry price until reachedLimit & stop ordersSent to broker (ORDER_TIME_SPECIFIED); broker cancels at expiry
StopTriggers entry once price trades through a breakout levelLimit & stop ordersSent to broker (ORDER_TIME_SPECIFIED); broker cancels at expiry
Stop limitTriggers at your stop price, then fills only at the limit price or betterLimit & stop orders + Stop-limit ordersSent to broker (ORDER_TIME_SPECIFIED); broker cancels at expiry

For pending orders, two one-tap expiry presets (order-expiry-presets.ts) calculate Valid until timestamps automatically: End of session (the active session clock's closing minute) and Before next release (5 minutes prior to the next high-impact macro release on that symbol). Because pending expiry travels to the broker with the order, the broker cancels expired pending orders even if TradingPact is disconnected.

Per-lot commissions, fixed costs, and optional entry conditions

Inside Account execution settings (execution-settings.tsx), you configure per-trade risk caps (maxRiskPercent, maxRiskAmount), maxVolume, maxDailyEntries (up to 10,000), your account concurrent risk budget (concurrentRiskPct up to 50%), allowed symbols, costPerLot, and fixedCost. Stop-based lot sizing deducts both costPerLot and fixedCost before rounding down to the broker's volumeStep.

You can also enable 4 optional entry-only conditions (entry-limits.ts), which block new Desk entries without ever closing open positions:

  • Maximum spread: Refuses new market entries when current broker spread exceeds your point threshold.
  • Minimum reward-to-risk: Refuses setups whose planned target-to-stop R sits below your floor (up to 100).
  • Done-for-the-day R / losing trades: Stops new entries after reaching a daily R target or losing-trade count (up to 100) until the trading day resets. Tightening any of these 4 conditions takes effect immediately; loosening a previously set condition requires review.

Order Review, Order Groups, and Partial Exit Ladders

Order Review pre-trade gate and input-change invalidation

Every Desk entry passes reviewExecutionTicket (service-review.ts) before confirmExecutionEntry (service-confirmation.ts) can dispatch it:

  1. 15-second locked snapshot: Opening Order Review captures your exact entry, stop, target, lot size, account settings version, pact version, protection profile hash, ledger version, and quote epoch into a review that remains valid for 15 seconds.
  2. Input-change invalidation: Changing any price, risk figure, or order type increments the ticket revision and invalidates prior reviews immediately so an order can never be confirmed against stale math. Before dispatch, the worker re-checks allowedRiskAmount and exact lot equality (DISPATCH tolerance).
  3. Broker margin & entry-lane safety: Reviews estimate required free margin (allowing up to 2% notional rescale on live market ticks before requiring a new margin estimate) and block new entries whenever an earlier Desk order on the account is unconfirmed (Outcome unknown, held for at least 10 minutes until synchronized broker history proves no order exists).
  4. 10% smallest-size tolerance: When the broker's minVolume risks slightly more than your requested cash risk, TradingPact permits up to a 10% smallest-size tolerance above your requested risk only if the trade stays strictly inside your locked pact cap, execution limits, and remaining daily/concurrent risk room. Direct placement skips auto-send and opens Order Review showing the exact cash risk and volume for explicit confirmation.
  5. Hard blocks vs soft warnings: Hard rule failures refuse the ticket outright; soft rule warnings display a Soft rule notice at Order Review so confirming acknowledges the warning and writes an allowed with a warning receipt.
  6. Spread in R and ATR(14) stop scale: The Spread · costs row combines live spread points, live spread as a fraction of your stop distance ((ask - bid) / |entry - stop|, such as 0.02R), and account-currency entry cost on one line, turning amber at 0.08R (8% of 1R) or higher without suggesting any size or risk change (computeSpreadInR). The Stop row separately displays your stop distance as a multiple of ATR(14) (for example, 1.5 x ATR(14)) without repeating spread counts.
  7. Macro shock trailing-stop cue: When an Enforce account with closing allowed (and trailing stops turned off) opens the Desk from a macro-shock prompt (?from=macro-shock), order panels display a dismissible link to that account's position-protection page without enabling trailing automatically.

Order Groups (paired OCO)

With Limit & stop orders and Paired OCO orders permissions enabled on a hedging broker account (NETTING accounts are unsupported because positions must remain independently protected), Order Groups (order-groups.ts) let you pair two opposite-side pending Limit or Stop tickets on the same instrument with broker-enforced expiries.

  • Bounded 1R budget: calculateOrderGroupRisk prices the pair cleanly across the bounded 1R stop budget instead of double-charging opposing directions.
  • Zero-warning gate: Both legs must pass every pact rule cleanly; if either leg triggers a soft warning, the group refuses pairing and instructs you to place the ticket singly through Order Review so the warning is acknowledged explicitly.
  • Observational cancellation boundary: Confirming requires acknowledging BOTH_CAN_FILL, COMBINED_RISK, and CLOSE_LATEST_EXPOSURE. Because TradingPact manages OCO cancellation outside the broker matching engine, if price fills both legs before cancellation lands, TradingPact automatically closes the latest exposure and records the event.

Partial Exit Ladders on open positions

When Partial reductions (PARTIALS) is enabled and automatic broker write authority is active on an exclusive Desk position, Partial Exit Ladders (position-levels.ts, chart-position-partials.tsx) let you arm draggable take-profit (TP) or stop-loss (SL) partial exit levels directly on the chart.

Each armed level validates the broker's minVolume and volumeStep while reserving at least minVolume remaining on the position until final close, watches fresh broker quotes (5 seconds on native polling, 15 seconds on streaming), and disarms cleanly if the position size changes externally.

Armed entry criteria and price watches

Notify me, Ask before entry, and Execute once

On enrolled accounts with Condition alerts (WATCHES) or Conditional entries (CONDITIONAL) enabled, you can attach structured entry rules to a captured plan (watches.ts, execution-watch-form.tsx):

ModeTrigger behaviorRequirements & limits
Notify meSends an alert when the market meets your condition; places no orderRequires Condition alerts permission
Ask before entryAlerts you when triggered so you open Order Review and confirm manuallyRequires Condition alerts permission
Execute onceArms a single-use automatic Market entry (maxUses = 1) bounded by fixed maxRiskAmount, maxVolume, entryRange, stopLoss, takeProfit, and expiresAtRequires Conditional entries, Market order type, and explicit 60-second mandate confirmation (BOUNDED_EXECUTION + EMERGENCY_PROTECTION)

Rule primitives and optional AI drafting

Both watches and armed entries run on the same deterministic rule engine (watch.ts):

  • Executable price crosses: Monitors ASK (Buy) or BID (Sell) crossing above or below your exact price level.
  • Completed candle closes: Evaluates completed bars across 1m, 5m, 15m, 30m, 1h, 4h, or 1D.
  • Completed break and retest: Checks that a prior completed bar closed beyond the level plus tolerance, then a subsequent completed bar within windowBars (up to 100 bars) touched [level - tolerance, level + tolerance] and closed back on the breakout side.
  • Optional AI rule drafting: If AI features are enabled, ExecutionCriteriaDraft can translate plain-English trigger notes (at least 10 characters) into structured AND/OR rules. Drafting never arms an entry; you must review and explicitly save or arm the resulting rule.

Live Position Sheet, partial closes, tighten-only R-trails, and bulk actions

Partial closes and tighten-only R-trails

Opening any Desk position displays live floating P&L, current R multiple, a visual stop-to-target progress bar, and two management tools:

  • Take partial (PartialCloseControl): Quick percentage presets and a custom lot field aligned to minVolume and volumeStep, previewing locked-in P&L and the updated dollar risk remaining at your stop before confirmation.
  • Tighten-only R-trails (execution-trail.ts): Attach Off, Breakeven (moves stop to entry at +1R or custom trigger), Steps (advances stop in discrete steps from +1R through +10R), or Follow (trails peak favorable price by a 1R or custom gap). Because trails are managed by the broker link rather than native MT5 server orders, moves occur typically within 1 minute, strictly tighten-only, and every modify sends stop, target, and trail state together so existing protection is never cleared. Trailing requires Trail stops permission and active automatic write authority.

Bulk Desk actions: Close all and Breakeven all

From the bottom dock's Positions view (desk-bulk-actions.tsx, bulk-management.ts), two bulk actions manage Desk-placed exposure without touching trades you opened directly in MT5:

  • Close all: Reviews closing every Desk position and cancelling every Desk working order.
  • Breakeven all: Reviews moving every eligible Desk stop to entry plus an optional profit-side offsetTicks (from 0 up to 10,000 ticks, rounded toward profit), automatically skipping positions missing a target, already past entry, or within the broker's minimum stopsLevel.

Each item in a bulk review receives its own individual snapshot, confirmation, receipt, and idempotency key, while external MT5 trades are listed clearly as untouched. Both bulk actions, partial closes, and stop tightening stay unlocked even when the Desk is Held, paused, or pattern-held.

Read MT5 Position Sizing & Desk Execution for exact sizing formulas and concurrent budgets, Desk Charts, Layouts & Replay for multi-chart setup, and Trading Rules, Locks & Accountability for pact rule definitions. You can also compare TradingPact Desk vs raw MT5 order tickets, test contract costs with the MT5 Contract Fit Calculator, and read Trailing a stop in R on the Desk and Hard rules and soft rules.

FREQUENTLY ASKED QUESTIONS
Why does changing my stop or risk on the Desk invalidate my previous Order Review?
Every Order Review snapshot hashes your exact entry, stop, target, lots, pact version, protection profile, and account ledger state for 15 seconds. Any change to order inputs invalidates that review so you never confirm an order against outdated sizing or rule math.
What happens if an armed Execute once entry triggers while a soft pact warning applies?
TradingPact holds the automatic entry and dispatches nothing. Soft rules display a warning that requires a trader present to acknowledge it at Order Review; an unattended entry never skips a warning.
Do Bulk Desk actions like Close all or Breakeven all touch trades I opened directly in MT5?
No. Bulk Desk actions list external MT5 positions separately and leave them untouched because TradingPact does not assume management authority over exposure it did not place. Each Desk item receives its own individual review and receipt.
Can I still close positions or tighten stops when my Desk hits its daily loss limit and enters Held?
Yes. When the Desk enters Held, paused, or pattern-held status, only new entries are blocked. Partial closes, full closes, stop tightening, target edits, and bulk risk-reduction actions remain available.
READY TO START

Explore the demo or claim your batch place.

Reserve your waitlist spot for the next Desk batch, or inspect locked pacts, receipts, and loss-room meters inside the free demo.