Hardware FixRecommendedDevice not working? Your driver may be the problemCheck updates for common hardware issues.Fix DriversOctober DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsWindows FixRecommendedWindows errors stealing your time? Find the fix fastScan stability, cleanup and performance issues.Fix Now×
Skip to content
World desk3 min

MT5 OrderSend Returned True? Three Checks Before You Expect a Position

An MT5 OrderSend success is not proof of an open position. Check the server retcode, trace orders and deals into account state, then use the correct position identifier.

Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

If OrderSend() returns true but your Expert Advisor cannot find the expected open position, the Boolean alone does not confirm that a trade executed. Check the server’s retcode, follow the order-to-deal-to-position lifecycle, and use the right position identifier for the account’s netting or hedging mode.

1. Check the server result code, not only the Boolean

OrderSend() takes a MqlTradeRequest and a MqlTradeResult. A true return means the request passed basic checks and was accepted for further processing; the server may complete the trade operation later. In particular, MetaQuotes cautions that a successful return for a market deal request does not prove that the requested trade was executed. MQL5 Reference: OrderSend

As an Amazon Associate I earn from qualifying purchases.

Read result.retcode to learn how the trade server handled the request. The fields in MqlTradeResult answer different questions: deal is a deal ticket if a deal was performed, while order is an order ticket if an order was placed. Neither field is itself confirmation of an open position. Log result.comment and, when a response from an external trading system matters, inspect result.retcode_external; its meaning can depend on that system. MQL5 Reference: Trade Request Result Structure

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

For example, the documented return codes distinguish an order being placed from a request being completed or partially completed. Interpret the code in the context of the operation you sent rather than treating any nonzero result field as success.

#1 Best Overall
Sale
SAMSUNG 34" ViewFinity S50GC Series Ultra-WQHD Monitor, 100Hz, 5ms, HDR10, AMD FreeSync, Eye Care, Borderless Design, PIP, PBP, LS34C502GANXZA, 2023, Black
  • DO MORE ON ONE SCREEN: See every detail on the wider display featuring a 21:9 aspect ratio; Ultra WQHD provides the simplest way to maximize screen real estate and experience truly seamless multitasking on just one screen.Brightness (Typical) : 300 cd/㎡. Static Contrast Ratio 3000:1.
  • ENJOY A BILLION COLORS W/ INCREDIBLE DEPTH: With HDR10 that displays over 1 billion colors compared to 16.7 million for typical SDR technology, dark colors are darker and the brightest are even brighter; Content is experienced as the creator intended
  • CARE FOR YOUR EYES DAY and NIGHT: An ambient light sensor on the monitor detects lighting in your workstation and automatically adjusts brightness; Eye Saver Mode minimizes excessive blue light, and Flicker Free relieves eye strain
  • SEE CONTENT SMOOTHER, EVEN GAMING: A faster than average refresh rate updates the image on screen more often every second; 100Hz refresh rate reduces lag and motion blur when playing games, watching videos, or working on design projects
  • STAY IN SYNC WITH THE ACTION: AMD Radeon FreeSync keeps the refresh rate of your monitor and graphics card in sync to reduce image tearing for a superfluid entertainment experience; Watch movies and play games without interruptions
Return code Meaning What it tells you
TRADE_RETCODE_PLACED (10008) Order placed An order was placed; this is not, by itself, confirmation of a filled position.
TRADE_RETCODE_DONE (10009) Request completed The request completed; inspect account state to determine the resulting position.
TRADE_RETCODE_DONE_PARTIAL (10010) Request completed partially Only part of the requested volume completed.

These are MQL5 API constants, not guarantees about how every broker, instrument, account configuration, or external system behaves. Consult the MQL5 trade server return-code reference for codes beyond these examples. Do not retry every unsuccessful result automatically: a retry can duplicate an action or repeat a request that is structurally invalid.

2. Follow the order, deal, and position lifecycle

An order, a deal, and a position are distinct objects. In MetaQuotes’ documented market-buy example, the request creates an order; execution removes it from the open-order list and moves it to order history; a deal is added to deal history; and a position is created. A single request can therefore produce several trade transactions, and the account state may not yet show the position when the initial call returns. MQL5 Reference: OrderSend

Rank #2
TechMagnet Siwa 6 Trading PC, i5-6, 16GB RAM, 120GB SSD, Win 11
  • This Trading desktop computer Siwa 6 tower comes with RGB LED Light Siwa 6 on complete front Panel. Lighting can be changed with remote control and quickly adjust the lighting speed, and the mode. This computer is highly recommended for who can enjoy the unlimited gaming experience. Configured with top of the Core i5-6500 processor for lightning-fast, reliable, and consistent performance to ensure an exceptional PC experience.
  • The combination of key integrated components powers this PC to maximum performance. Arrives with a 16GB Memory and 120GB SSD + 2TB HDD for efficient multi-tasking and robust hard drive space for files, apps, music and movies set this computer apart to excel for Trading. Supports all trading platforms, online or locally installed. Wired Keyboard and Mouse to keep pc response time under 100ms, ensures no interference and lag. This sleek keyboard not only looks and feels good.
  • 2 Network cards (1 GBps Min) Network need to be wired to ensure no lag in system and trading. It as a advanced Features like fasten the what u need what your needs, productivity as its more speed surfing the internet, emailing, 2Times speed 10 times greater than better range Bluetooth, Antennas.
  • 4 x New 24” monitor 1080p, also known as Full HD or FHD (full high definition), is a very common display resolution of 1920 x 1080 pixels. And You get excellent clarity and picture balance whether trading, gaming, browsing the internet, writing, reading, or posting images.

Use trade events or a fresh account-state query to establish what happened instead of inferring a position from the immediate return. The MQL5 technical chapter describes correlating later progress with the request ID in OnTradeTransaction(), or analyzing current orders, deals, and positions. Transaction callbacks can be multiple for one request; request and result details are supplied to OnTradeTransaction() for request-type transactions. MQL5 Reference: Trade Transaction Types and MQL5 Algo Book: Sending a trade request

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
  • Record the request ID and result fields when sending the request.
  • Process relevant transaction events where event-driven handling fits your EA.
  • After processing advances, inspect current orders, deal history, and positions to identify the resulting state.
  • Treat result.order and result.deal as order and deal identifiers respectively, not as position identifiers.

3. Use the correct position identifier when managing it

Finding that a trade executed is separate from targeting the right position in a later close or modification request. Set MqlTradeRequest.position appropriately for the account mode. In a hedging account, specify the position ticket. In a netting account, the symbol identifies the position, although the ticket can also be set. MQL5 Reference: Trade Request Structure

Rank #3
Kado 2-Pack Dual 27" Curved 1500R 1920x1080 75Hz FHD Computer Monitor
  • DUAL MONITOR SETUP - Curved monitors in a dual setup provide a seamless viewing experience with reduced peripheral distortion, ideal for immersive gaming or detailed work.
  • ERGONOMIC DESIGN - The 1500R curved design provides a more comfortable viewing experience by reducing eye strain and neck fatigue, allowing for longer periods of use with less discomfort.
  • FAST RESPONSE TIME - Fast response times reduce ghosting & blurring while transitioning pixels, always keeping the enemy & terrain precisely in focus during chaotic moments.
  • TRUE TO LIFE COLORS - Experience vibrant and true-to-life colors with a 98% sRGB color gamut performance, ensuring accurate and stunning visuals for all your creative and multimedia tasks.
  • ENHANCED 75HZ REFRESH RATE - Enjoy unparalleled responsiveness and seamless visuals that will take your gaming experience to the next level.

If an EA uses the wrong identifier or assumes a hedging-style position when the account is netting (or vice versa), it can fail to address the position it intends to manage. Determine the account mode and use the corresponding field semantics when constructing the close or modification request.

Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Use OrderCheck as a preflight, not a fill confirmation

OrderCheck() can validate a request before submission and return check results, including projected account and margin information. It cannot establish that a later order was filled: that depends on the server response and the subsequent trade lifecycle. MQL5 Reference: OrderCheck

Best Value
Sale
Sceptre New 22-Inch Gaming Monitor, FHD 1080p, Up to 144Hz, HDMI, DisplayPort, Built-in Speakers, Machine Black (E225W-FW144 Series, 2026)
  • 【INTEGRATED SPEAKERS】Whether you're at work or in the midst of an intense gaming session, our built-in speakers provide rich and seamless audio, all while keeping your desk clutter-free.
  • 【EASY ON THE EYES】 Protect your eyes and enhance your comfort with Blue-Light Shift technology. This feature reduces harmful blue light emissions from your screen, helping to alleviate eye strain during long hours of use and promoting healthier viewing habits.
  • 【WIDEN YOUR PERSPECTIVE】Our sleek minimal bezel design ensures undivided attention. The nearly bezel-free display seamlessly connects in a dual monitor arrangement, delivering an unobstructed view that lets you focus on more at once, completely distraction-free.
Rank #4
Philips 24 Inch Computer Monitor FHD 100Hz VA VESA Flicker-Free, 241V8LB
  • CRISP CLARITY: This 23.8″ Philips V line monitor delivers crisp Full HD 1920x1080 visuals. Enjoy movies, shows and videos with remarkable detail
  • INCREDIBLE CONTRAST: The VA panel produces brighter whites and deeper blacks. You get true-to-life images and more gradients with 16.7 million colors
  • THE PERFECT VIEW: The 178/178 degree extra wide viewing angle prevents the shifting of colors when viewed from an offset angle, so you always get consistent colors
  • WORK SEAMLESSLY: This sleek monitor is virtually bezel-free on three sides, so the screen looks even bigger for the viewer. This minimalistic design also allows for seamless multi-monitor setups that enhance your workflow and boost productivity
  • A BETTER READING EXPERIENCE: For busy office workers, EasyRead mode provides a more paper-like experience for when viewing lengthy documents

EA debugging checklist

  1. Separate submission from execution: check the OrderSend() Boolean, then examine result.retcode, result.comment, and any relevant result.retcode_external.
  2. Trace the actual outcome: interpret result.order and result.deal according to the request, then correlate transactions or query fresh orders, deals, and positions.
  3. Target management requests correctly: set request.position for the account’s netting or hedging mode when closing or modifying a position.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Leave a Reply

Your email address will not be published. Required fields are marked *

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

More from the Wire

  1. World desk4 min
    How to Spot an AI Voice Scam Before Sending MoneyDon’t rely on how a caller sounds. Pause, call back through a known number, and verify the emergency with another trusted person before sending money.
  2. Mountain View desk4 min
    Google’s SynthID Detector: How to Check AI-Generated Images, Video and AudioGoogle’s SynthID Detector looks for an embedded watermark in supported images, video and audio. Here is what its results do—and do not—show.
  3. Redmond desk20 min
    How to create a link to File or Folder in Windows 11Windows 11 gives you several ways to point to a file or folder without moving or duplicating it. You can create a desktop shortcut,…
Recommended PC Tool
Recommended PC Tool
Windows Errors? Fix Them Before They SpreadFree repair scan
Outdated Drivers Are Slowing You DownFree scan - exact matches

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.