Deregister an indicator from the session registry
Source:R/indicator.R
ledgr_deregister_indicator.RdRemoves 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.
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")
})