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.
| Name | Kind | Summary |
|---|---|---|
| Count | function | One bar for every ``n`` time bars of ``of``, like ``Count(3, "H1")``. |
| HeikinAshi | function | Heikin-Ashi bars over time bars. |
| Kagi | function | Kagi lines that reverse after a move of ``reversal`` in ``unit`` (default pips). |
| LineBreak | function | Line break bars that look back ``lines`` lines (default 3). |
| PointFigure | function | Point and figure columns. |
| Range | function | Range bars: a bar closes when its high to low range reaches ``size`` in ``unit``. |
| Renko | function | Renko bricks. |
| Tick | function | One bar for every ``n`` ticks. |
| Time | function | Time bars: one bar per period, like ``Time("H1")``. |