How does Square off work for closing positions from this automation or across the account?
How Does Square Off Work for Closing Positions From This Automation or Across the Account?
The Square off action in Automate is used to exit open positions when an automation reaches a specific trigger, condition, or exit path.
Depending on the selected action type, it can close only positions created by the current automation or positions across the entire account. This action directly places exit orders for live positions.
How does Square off work?
When a Square off action node is executed:
Exit orders are placed for the applicable open positions.
Only positions that are currently open are considered.
The scope of positions exited depends on the selected Square off action type.
The automation continues to the next connected node after the square off attempt.
Types of square off action
FYERS Automate provides multiple Square off action types, allowing you to control exactly which positions are exited.
1) Square off automation positions
Exits only the positions opened by the current automation.
Positions from other automations or manual trades are not affected.
2) Square off all positions
Exits all open positions across the account, across all segments.
Includes automation positions and manually placed positions.
3) Square off positions by segment
Exits positions only in the selected segments.
Available segment options include:
NSE capital market
NSE equity derivatives
NSE currency derivatives
NSE commodity derivatives
BSE capital market
BSE equity derivatives
BSE currency derivatives
MCX commodity derivatives
You can further filter exits by product type:
CNC
INTRADAY
MARGIN
CO
BO
4) Square off all options positions
Exits all open positions in the options segment.
5) Square off all NSE options positions
Exits all open options positions in NSE only.
6) Square off all commodity positions
Exits all open positions in the commodity segment.
7) Square off all intraday positions
Exits all open intraday positions across segments.
Steps to use Square off action in Automate
Follow these steps when building a new automation:
Log in to FYERS Web and go to Automate → Dashboard.
Click Create automation.
Add the required start, trigger, or condition nodes on the workflow canvas.
In the left panel, open the Actions tab.
Expand Square off.
Click the required Square off action to add it to the canvas.
Click the Square off node to open Edit node configuration.
Select the required Action type.
If applicable, select the segments and product types.
Click Apply to save the configuration.
Click Validate to ensure the automation has no errors.
After successful validation, click Run now or schedule the automation.
Use Square off automation positions when running multiple automations to ensure only trades created by the current automation are exited.
If you manually square off (close) a position that was opened by an Automate workflow, only that specific position is closed in your trading account. The automation does not stop and continues running as per the workflow logic. What to expect Manual ...
Stop Automation Action in FYERS Automate The Stop automation action in Automate is used to immediately halt a running automation when it reaches a preset trigger, condition, or exit path. Depending on the option selected, it can either stop the ...
The checkbox Check only for this automation decides what positions are checked. Turn it ON to check only the trades made by this automation. Turn it OFF to check the scheduled automations to be run in the future. What it does ON (checked): Uses only ...
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 ...
The Mail alert action in Automate sends an email notification when an automation reaches a specific step. It is used to notify you about important automation events, signals, or conditions via email. This action is informational only and does not ...