Order Type: Market, Limit and Stop orders
The Order type of an Open signal decides how the order is sent to the broker: at once, or as a pending order that waits for a price.
In short:
- Market Order: opens immediately at the current market price.
- Limit Order and Stop Order are pending orders: they wait at the broker for the At price.
- A pending order can expire: after a condition (Expire when) or a time (Expire after).
Choose the order type
Section titled “Choose the order type”In the signal editor of Open Buy or Open Sell, choose from the following order types:
- Market Order: opens immediately at the current market price. The order is sent to the broker and filled at the current price.
- Limit Order: opens only when the price reaches a better level than now. A pending order that requests a better price.
- Stop Order: opens when the price moves further in your direction to a set level. A pending order that waits until the price reaches a target price.
A pending order (Limit Order or Stop Order) is filled at some time in the future, if it can be filled for the requested price before it expires.


Market Order
Section titled “Market Order”With a Market Order you only configure the Open Trade when condition: the order is sent to the broker when this condition is met.
Limit Order and Stop Order
Section titled “Limit Order and Stop Order”A pending order shows extra tabs in the signal editor:
- Open Trade when: the condition that sends the order to the broker
- At price: the price at which the order is filled
- Expire when: a condition that deletes the order before it is filled
- Expire after: a time after which the order is deleted if it isn’t filled


Open Trade when
Section titled “Open Trade when”The condition, built in the same way as for a Market Order: when it is met, the pending order is sent to the broker.
At price
Section titled “At price”The At price is a value you build like an Advanced Condition: from Values, Operations and Math Operators. For
example Ask + 10 × Pip for a Buy Stop 10 pips above the current price.
The At price must be on the right side of the current price:
- Buy Limit: below the current Ask
- Buy Stop: above the current Ask
- Sell Limit: above the current Bid
- Sell Stop: below the current Bid


Expire a Pending Order
Section titled “Expire a Pending Order”A Pending Order waits at the broker until the price reaches the At price level. If that takes too long, or the market changes, you may no longer want the order. Use the two expiry tabs to delete a Pending Order that hasn’t been filled yet.
Expire when
Section titled “Expire when”A condition, built in the same way as the Open Trade when condition. The order is deleted if this condition is met before it is filled.
Expire after
Section titled “Expire after”A duration in Days (up to 365), Hours (0 to 23) and Minutes (0 to 59). The order is deleted if it isn’t filled within this time. Leave all three at 0 if the order shouldn’t expire after a fixed time.
Both, and after the fill
Section titled “Both, and after the fill”- If you use both, the order is deleted as soon as the first of the two happens.
- Once a Pending Order is filled, it is a normal open order and the expiry settings no longer apply.
Example
Section titled “Example”Your EA places a Buy Stop above the current Ask when the price breaks out of a range. If the breakout doesn’t happen within the same trading day, you no longer want the order:
- Expire after: 0 Days, 8 Hours and 0 Minutes
- Expire when:
Moving Average 7Down CrossMoving Average 30, to also delete the order when the trend turns
Related
Section titled “Related”- Trading Signals: conditions and groups
- Functions: Ask, Bid and Pip for an At price
- Operators: Down Cross and math operators
MetaTrader is a registered trademark of MetaQuotes Ltd. EA Builder Pro is not affiliated with MetaQuotes.