Factory that instantiates a concrete Indicator from a config. This is
the only path by which wrapper-driven code creates indicators — user
components never import SMA, EMA, etc. directly in React/Vue apps.
Throws with a descriptive message if given an unknown type at runtime
(most likely from a loadState(json) call with a newer schema).
Factory that instantiates a concrete Indicator from a config. This is the only path by which wrapper-driven code creates indicators — user components never import
SMA,EMA, etc. directly in React/Vue apps.Throws with a descriptive message if given an unknown type at runtime (most likely from a
loadState(json)call with a newer schema).