How does the Order status trigger work, and which statuses can I wait for?

How does the Order status trigger work, and which statuses can I wait for?

Order status is a Trigger type in FYERS Automate. It allows your automation to move forward only when a specific order (placed earlier in the same automation run) reaches the status you choose.

This trigger does not place orders by itself.

Use Order status when your next step depends on what happened to an order—for example, place a stop-loss only after an entry order is executed, or take a different action if an order is rejected or cancelled.

How the Order status trigger works

After adding this trigger, Automate continuously checks the selected order’s status. Once the order reaches the chosen status, the automation continues to the next connected step.

Order status trigger types you can wait for

1) Order execution

Triggers when a specific order is executed (completed in the market).

Example: Your automation places a buy order. You use Order execution to continue only after the buy order is executed, and then place a stop-loss order.

2) Order rejection

Triggers when a specific order is rejected.

Example: You place an order, but it gets rejected due to reasons like invalid parameters or insufficient funds. If you select Order rejection, the automation can move forward to a step like sending a notification or stopping the run.

3) Order pending

Triggers when a specific order is in pending status (placed but not executed yet).

Example: You want the automation to take an alternate path if the order is still waiting in the market. Select Order pending to proceed when the order is confirmed to be pending.

4) Cancelled order

Triggers when a specific order is cancelled.

Example: If an order is cancelled (by you or by the system), selecting Cancelled order lets the automation continue to the next step—such as placing a fresh order, sending an alert, or ending the automation.

How configuration works

The Order status trigger is configured on the canvas by selecting the trigger, choosing the specific order from your workflow, and selecting the trigger type you want to wait for (Order execution, Order rejection, Order pending, or Cancelled order).

Note: The automation moves forward only when the selected trigger type is met. If the order reaches a different status than the one selected, the automation will not proceed from this trigger.

What if...

ScenarioWhat happens
I selected Order execution, but the order gets rejectedThe automation will not move forward because the selected status (execution) was not reached.
I want different actions for execution and rejectionUse separate Order status triggers—one waiting for execution and another waiting for rejection.
I used Order pending but the order later gets executedThe trigger is met as soon as the order becomes pending. After that, the automation continues based on your workflow design.
I want the automation to respond when an order is cancelledSelect the Cancelled order trigger type so the automation continues only when cancellation happens.

Last updated: 22 Dec 2025

    • Related Articles

    • When should I use Wait time, and what’s the difference between “Wait duration” and “Wait till”?

      Wait time is a Trigger type in FYERS Automate that pauses an automation before it moves to the next step. It is used when your strategy needs to wait for a specific amount of time or until a specific clock time is reached. This trigger does not place ...
    • How does the " Indicator with Indicator” trigger type work?

      The " Indicator with Indicator” trigger type work?” trigger type lets you compare one indicator against another indicator. It triggers when one indicator meets the condition set against another indicator. Use this trigger type when you want the ...
    • How does the “Indicator with value” trigger type work?

      The “Indicator with value” trigger type lets you compare an indicator against a defined value. It triggers when the indicator reaches the defined value. Use this trigger type when you want the system to evaluate an indicator against a fixed number ...
    • How do i use place order action in automate?

      The place order action in Automate lets you place a live trade automatically when your automation reaches a specific trigger, condition, or step. Based on the order type you select, you can place options, futures, or a direct order for a symbol, and ...
    • What are Exit Conditions, and how do they work?

      Exit Conditions are preset rules that end an automation when any one of them becomes true. Treat them as a safety switch that can stop a run regardless of where it is in the flow. How Exit Conditions work Exit Conditions are preset at the automation ...