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

    Function ichimokuOffsets

    • The x-offset, in bars, a chart applies to each ichimoku column+displacement for the two Senkou spans (drawn into the future), −displacement for the Chikou span (drawn into the past), and 0 for Tenkan and Kijun.

      The study keys every column to the bar it is computed from and displaces nothing (see ichimoku), so the offset has to live somewhere. It lives here rather than in the caller's head:

      const opts = { displacement: 26 } as const;
      const withCloud = ichimoku(bars, opts);
      const offsets = ichimokuOffsets(opts); // { ichiSenkouA: 26, … }
      // <LineChart column="ichiSenkouA" xOffsetBars={offsets.ichiSenkouA} />

      Pass the same options object you passed to ichimoku — the two read the same two fields and default them the same way, so the names and the signs cannot drift apart. This is the data-side half of the charts ask C2 (per-layer xOffsetBars plus forward projection space); until that lands, the map is still what a consumer needs to shift the series itself.

      The precedent for exporting it at all is GUPPY_SHORT_PERIODS — a number a chart has to restate is a number a chart gets wrong.

      Type Parameters

      • const Prefix extends string = "ichi"

      Parameters

      Returns IchimokuOffsets<Prefix>