Skip to main content

Flatten, force exit, and market timings

Flatten closes every open trade for that strategy. In the alert it is FORCE_EXIT.

Flatten via webhook​

{ "action": "FORCE_EXIT" }

Only one symbol:

{ "action": "FORCE_EXIT", "symbol": "NIFTY" }
ExitFlatten (FORCE_EXIT)
Typical JSON"action": "EXIT" + symbol"action": "FORCE_EXIT"
What it closesThe matching open trade for that symbolAll open trades on the strategy (or one symbol if passed)
Same alert twiceIgnored for ~1 hourCan fire again immediately
  • EXIT_ALL is the same as FORCE_EXIT.
  • On the Strategy page, Exit all uses the same backend.

Market hours gate​

Strategy → Advanced:

  • Trade only in market hours — webhook BUY / SELL return HTTP 403 outside 09:15–15:30 IST, Mon–Fri.
  • Exits and flatten still work outside that window.

Auto square-off​

Strategy → Advanced → Square-off time (IST), e.g. 15:15.

TradePod flattens that strategy’s open lots once per day at that time. Clear the field to disable.

Product (Intraday vs CNC)​

Strategy → Settings (equity only). Webhook is_intraday overrides when present. F&O is always INTRADAY at the broker.

Back to TradingView alerts