How a symbol's history is adjusted: adjustment.none, adjustment.splits or adjustment.dividends.
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
| Name | Value | Description |
|---|---|---|
adjustment.dividends | dividends | Adjust history for splits and dividends. |
adjustment.none | none | No adjustment: prices as they traded. |
adjustment.splits | splits | Adjust 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.newand other symbols are not supported yet; they warn once and return na.
Example
//@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