Count

forge.barsfunctionSince Forge API 1
Signaturepython
forge.bars.Count(n: int | Param,of: str | Param,*,basis: str | Param | None = None,day_boundary: str | None = None,on_closure: str | None = None) -> BarDecl

One bar for every n time bars of of, like Count(3, "H1").

Parameters

NameTypeDefault
nint | Param
ofstr | Param
basisstr | Param | NoneNone
day_boundarystr | NoneNone
on_closurestr | NoneNone