Skip to main content

'Buy & Sell Pending Order' Block

Predefine buy & sell entries with stop or limit orders for precise execution.

Updated over 3 months ago

Pending orders allow you to set up trades that will only trigger once price reaches a defined level. In Profectus, you can configure every aspect of this behavior in the Buy Pending Order or Sell Pending Order blocks.


1. Open Price Level

This defines where the pending order is placed:

  • Ask – Opens at the current ask price.

  • Bid – Opens at the current bid price.

  • Mid – Opens at the midpoint between bid and ask.

  • Custom Price – Define a price using sources such as Indicator, Value, Candle, Market Property, Account, or Trade Info.

    • Example: Select Market Property → Highest Price of the current candle. The pending order will be placed exactly at that level.


2. Money Management

At the top of the block, you choose how much to risk per trade.

  • Fixed Volume – Enter the lot size directly (e.g., 0.01 is the minimum; most brokers cap at 100 lots). Does not require a stop loss.

  • Risk % of Equity – Percentage of equity (balance plus floating P/L). Example: 1 = risk 1% of your equity.

  • Risk % of Balance – Percentage of account balance (ignores floating P/L). Example: 1% risk on a €1,000 account = €10.

  • Risk Fixed Amount – Set the exact money amount to risk (e.g., 100 = €100). Requires a stop loss.

  • Martingale – Lot size adapts based on last trade result. Define:

    • Lookback (open trades / history / both)

    • Initial lot size

    • Multiplier on loss / profit

    • Add-on lots (optional)

    • Reset after X wins/losses

  • Custom Sequence – Advanced sequence-based risk sizing (covered in a separate article).


3. Stop Loss & Take Profit

Stop loss and take profit settings are also identical to Buy Now/Sell Now:

  • No Stop Loss – Not recommended except for experimental systems.

  • Fixed Pips – Enter pip distance (can also use Variables/Inputs in Pro).

  • % of Price – Example: Enter 1 → on a $100 stock, SL is set at $99.

  • % of Take Profit – Example: TP = 10 pips; enter 100 → SL = 10 pips; enter 200 → SL = 20 pips.

  • Custom Price Level – Choose a data source (Indicator, Candle, Value, Market Property, Account, Trade Info).

    • Example: Use the ATR indicator → gives you an average candle range in pips.

  • Price Fraction – Instead of a level, use part of a value (e.g., ATR fraction).


4. OCO Orders (One Cancels Other)

An OCO order is a mirrored pending order placed at the exact distance from the current market price as the original pending order with the same stoploss and take profit rules. If one of the pending orders gets triggered, the mirrored order will automatically be deleted.

  • False (default) – Both pending orders can remain active.

  • True – If one pending order triggers, the other is automatically canceled.

    • Example: Place both a buy-stop and sell-stop order. If price breaks upward and triggers the buy, the sell order is canceled automatically.


5. Order Expiration

Same as in Buy/Sell Now blocks. You can choose:

  • None – Orders stay open until filled or manually canceled.

  • Fixed Time – Expire at a set clock time.

  • Relative Time – Expire after X days/hours/minutes/seconds.


Best Practices

  • Pending orders are powerful for breakout strategies — e.g., placing orders above/below an inside bar.

  • Use OCO to avoid being trapped on both sides of a breakout.

  • Always test in visual backtests to confirm your pending orders trigger and cancel as expected.

Did this answer your question?