Skip to contents

Removes an indicator registration from the current R session. This only affects the in-memory registry used for interactive lookup and tests; it does not alter any persisted snapshots, runs, features, or ledger artifacts.

Usage

ledgr_deregister_indicator(name, missing_ok = TRUE)

Arguments

name

Indicator registry name.

missing_ok

If TRUE, missing names are ignored. If FALSE, missing names are an error.

Value

Invisibly returns TRUE when an indicator was removed and FALSE when the indicator was already absent and missing_ok = TRUE.

Examples

local({
  ind <- ledgr_indicator(
    id = "example_deregister",
    fn = function(window) tail(window$close, 1),
    requires_bars = 1
  )
  ledgr_register_indicator(ind)
  ledgr_deregister_indicator("example_deregister")
})