suspended(): int

Returns 0 when trading is allowed, otherwise the current status of suspended trading. 

Returns:

0 Trades can be entered.
1 Before the first valid bar (plus lookback period) of the current asset, or after the last valid bar
2 Before the WFO data horizon or inside a SKIP period.
4 Inside a time frame.
8 Outside market hours.
16 [Stop] button was clicked.

Remarks:

Examples:

 if(!suspended()) enterLong();

See also:

Bar, frame, market, TimeFrame, BarZone, Weekend

► latest version online