Events action
Use this action with change({ id: 'Events', context }).
Context
- event keys:
dividends,earnings,splits,custom - each event value can be:
- boolean shorthand (
true/false) -> mapped to{ show: boolean } - object with supported keys:
{ show, color, title }
- boolean shorthand (
Behavior
Turns each event marker on or off independently and optionally overrides marker color/title.
- Unknown event keys are ignored.
- Unknown event-object keys are ignored.
- Event changes apply to a symbol main plot; if main plot is not
Symbol, no event changes are applied.