forge.bars

Forge API 1

Bar declarations: ``bars = fg.bars.Renko(10)`` names the bars a strategy decides on.

Forge's one bar builder makes every bar. A strategy decides on the bars it declares, and every fill still happens at a real traded price after the bar closes. Each constructor returns a ``BarDecl``, which reads as the JSON form of a bar spec. A setting can stand in for a number: declare ``box = param.Float(10, min=5, max=30)`` on the class, then write ``bars = fg.bars.Renko(box)``, and each combination of settings resolves to its own bar spec.

NameKindSummary
CountfunctionOne bar for every ``n`` time bars of ``of``, like ``Count(3, "H1")``.
HeikinAshifunctionHeikin-Ashi bars over time bars.
KagifunctionKagi lines that reverse after a move of ``reversal`` in ``unit`` (default pips).
LineBreakfunctionLine break bars that look back ``lines`` lines (default 3).
PointFigurefunctionPoint and figure columns.
RangefunctionRange bars: a bar closes when its high to low range reaches ``size`` in ``unit``.
RenkofunctionRenko bricks.
TickfunctionOne bar for every ``n`` ticks.
TimefunctionTime bars: one bar per period, like ``Time("H1")``.