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" }
| Exit | Flatten (FORCE_EXIT) | |
|---|---|---|
| Typical JSON | "action": "EXIT" + symbol | "action": "FORCE_EXIT" |
| What it closes | The matching open trade for that symbol | All open trades on the strategy (or one symbol if passed) |
| Same alert twice | Ignored for ~1 hour | Can fire again immediately |
EXIT_ALLis the same asFORCE_EXIT.- On the Strategy page, Exit all uses the same backend.
Market hours gate
Strategy → Advanced:
- Trade only in market hours — webhook
BUY/SELLreturn 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