Support

Equilla Formula Language

IsTradingDay

Checks if there is any trading on the specified day.

Inputs

Datetime
Numeric: The Date and time value to check.

Remarks

This function is taking trading sessions and holidays into account. You may customize these settings via the Session Manager in tradesignal 5.

Examples

Exit if there is no trading on the next day
If TimeBase <;= 0 Then RaiseRuntimeError( "Please select a different period!" ); If IsTradingDay( DateAdd( Interval_Second, 2 * TimeBase, DateTime ) ) Then Buy Else Sell;