frame (int Offset): bool
Returns true when the current TimeFrame ends at the given bar.
frameSync (int Period): int
Synchronizes TimeFrame to a fixed time period, such as a hour, a day, or a week. Returns 0 inside the time frame and the negative number of skipped bars at the end of the time frame.
||Optional bar number, calculated from the current bar. Must be 0 when TimeFrame is synchronized to a fixed time period or to an external event.
||Time period to be synchronized, in bars. Must be an integer multiple of a hour, a day, or a week.
- TimeFrame = 24 is different to TimeFrame = frameSync(24). In the former case the time frame changes every 24 bars, in the latter case every day (assuming a 1-hour bar period), even if there is a different number of bars per day.
BarPeriod = 60;
FrameOffset = 3;
TimeFrame = frameSync(24);
// the time frame will now change daily at 3:00
Bar, TimeFrame, BarZone, Weekend,
► latest version online