Skip to content

Previous action

Use this action with change({ id: 'Previous', context }).

Context

  • id?: Get | Update (Update is assumed if omitted)
  • forceVisible?: true | false
  • color?, dashStyle?, lineWidth?
  • field?: PreviousOpen | PreviousHigh | PreviousLow | PreviousClose

Behavior

Configures the previous-value guide line.

  • Get returns current previous-line state in the same shape as Update context.

  • Update applies provided fields.

  • You must also enable showPrevious on the target plot (typically via Plot action, Update sub-action).

  • Default style values are #888, Solid, and 1.

  • forceVisible: true keeps the line visible even outside the current price range.