@pond-ts/financial API Reference
    Preparing search index...

    Function bollinger

    • Bollinger Bands® (John Bollinger) — a period-bar simple moving average (the middle band) with an upper/lower band at ±stdDev population standard deviations. Appends three columns (${prefix}Middle / ${prefix}Upper / ${prefix}Lower); the warm-up rows and any flat window (σ = 0) emit undefined bands. One rolling pass (avg + stdev) over a bar-count window.

      Type Parameters

      • S extends SeriesSchema
      • const Prefix extends string = "bb"

      Parameters

      Returns TimeSeries<
          readonly [
              S[0],
              ValueColumnsForSchema<
                  readonly [
                      S[0],
                      ValueColumnsForSchema<
                          readonly [
                              S[0],
                              ValueColumnsForSchema<S>,
                              OptionalNumberColumn<`${Prefix}Middle`>,
                          ],
                      >,
                      OptionalNumberColumn<`${Prefix}Upper`>,
                  ],
              >,
              OptionalNumberColumn<`${Prefix}Lower`>,
          ],
      >