Sidechair

adjustment.* constants

Browse the reference

How a symbol's history is adjusted: adjustment.none, adjustment.splits or adjustment.dividends.

Try it in the editor

adjustment.* constants go in the adjustment argument of ticker.new and ticker.modify. adjustment.none keeps prices as they traded. adjustment.splits rescales history for stock splits, and adjustment.dividends rescales it for splits and dividends. Without it, the chart's own adjustment setting applies.

Adjusted history lines up across a split, so a moving average does not show a false collapse on the split date. Unadjusted history shows what was actually paid.

Constants

NameValueDescription
adjustment.dividendsdividendsAdjust history for splits and dividends.
adjustment.nonenoneNo adjustment: prices as they traded.
adjustment.splitssplitsAdjust history for stock splits.

Remarks

  • An adjustment applies to a ticker id you then pass to request.security, not to the chart's own series.
  • On Sidechair: ticker.new and other symbols are not supported yet; they warn once and return na.

Example

Pine ScriptName an adjusted tickerOpen in editor
//@version=6
indicator("Adjustment", overlay = true)
adjusted = ticker.new(syminfo.prefix, syminfo.ticker, adjustment = adjustment.splits)
plot(close, "Close", color.gray)
if barstate.islast
    label.new(bar_index, high, "Adjusted: " + str.tostring(adjusted))

See also

Runs on Sidechair