Actions
What are Actions?
Actions define what happens when a condition is met.
They allow users to execute trades, square off positions, and perform other operations based on predefined logic.
Key Features
- Multiple Conditions → One Action: The same action can be triggered by multiple conditions.
- One Condition → Multiple Actions: A single condition can trigger multiple actions in a predefined sequence.
- Modular Design: Actions can be reused, eliminating redundant setups.
- Execution Order: The sequence of execution is shown on the link between the condition and action.

Components of an Action
Each action consists of the following components:
1. Action Type
Defines what the action does when triggered. Common action types include:
- Add Leg – Executes a trade (Buy/Sell).
- Square Off Position – Closes existing open positions.
- Stop All Wait Trade Triggers – Cancels pending trades in "Wait & Trade" mode.
2. Execution Sequence
- When multiple actions are linked to a single condition, they are executed in order.
- The execution sequence can be viewed from the connecting lines in the strategy builder.
3. Action ID
- A unique identifier assigned to every action.
- Helps in tracking and referencing actions inside the strategy logic.
4. Is Open Check
- Allows checking whether an action is still active or completed before triggering another action.
- Example: A condition can check if a Buy action is still open before placing another trade.
How Actions Work
- A condition is evaluated when the candle closes.
- If the condition is true, the linked action(s) execute in the defined sequence.
- If multiple conditions trigger the same action, it executes each time the condition is met.
📌 Example Workflow:
- Condition: "RSI crosses above 30"
- Action 1: Square off all to exit previous entered trades when RSI crosses below 70.
- Action 1: Buy 1 lot of NIFTY.
Available Action Types
Action Type | Description |
---|---|
Add Leg | Executes a Buy/Sell trade. |
Square Off Position | Closes all open positions for the strategy. |
Stop All Wait Trade Triggers | Cancels pending orders in "Wait & Trade" mode. |
Checking Action Status (Is Open)
- Users can check whether an action is still active or completed.
- Can be used to prevent duplicate order placements.
📌 Example:
Buy Action is_open == True
→ This ensures a new Buy order is not placed if an active Buy order exists.
Next Steps
✅ Add Actions to your strategy
✅ Link multiple conditions to a single action
✅ Ensure actions execute in the correct sequence
📄️ Add Leg
What is Add Leg?
📄️ Square Off All Positions
What is Square Off All Positions?
📄️ Stop Wait Trade Triggers
What is Stop Wait Trade Triggers?