Navigation: Realtest Script Language > Syntax Element Details >

EndOfWeek

 

 

 

 

Category

Bar Data Values

Description

Indicates whether this bar is the last bar of the market week

Notes

Returns 1 for the last bar of a week (typically Friday), otherwise 0.

Note that this function operates on the unified date list for all symbols in the current data file by default, or the date list of the CalendarSym if specified.

To check whether the current bar is the last bar of the week for a specific symbol, use Week[-1] <> Week.

To work correctly when generating tomorrow's orders or using negative (future) offsets, a HolidayList should also be provided.

 

 

 

 

Copyright © 2020-2024 Systematic Solutions, LLC