RealTest User Guide
RealTest User Guide

 

 

Navigation: Realtest Script Language > Syntax Element Details >

EndOfQuarter

 

 

 

 

Category

Bar Data Values

Description

Indicates whether this bar is the last bar of a calendar quarter

Notes

Returns 1 for the last bar of a month when month is March, June, September or December, 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 quarter for a specific symbol, use Month[-1] <> Month and Month % 3 = 0.

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

 

 

 

Copyright © 2020-2025 Systematic Solutions, LLC