alert_create
Create price or indicator alerts for IDX stocks, using supported series and operators. Conditions are validated before saving so rules that cannot be evaluated are rejected.
Instructions
Create a price or indicator alert on an IDX stock, stored on this machine.
The condition uses the SAME grammar as pine_script signals and is evaluated with the same indicator maths, so an alert and the Pine alertcondition for it agree.
Reference a declared series (sma20, sma50, rsi14, macdLine, macdSignal, bbUpper…), a price field (close, high, low, volume, hl2…), or a number. Declare what you reference via overlays/panels — the tool refuses a condition it cannot evaluate rather than storing a rule that silently never fires.
A field the SERIES does not carry is a separate matter from one you did not declare. Of the referenceable price fields, volume is the one a response can omit: where a bar is missing it the value reads as absent rather than as zero, and a condition referencing it is UNJUDGEABLE on that bar — reported as warming up, not as false. That is deliberate: a rule comparing volume against a figure the response never sent would otherwise fire, or not fire, on a zero nobody reported.
Alerts fire once per bar. Nothing is delivered automatically — alert_check evaluates them; there is no background daemon yet.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| op | Yes | ||
| left | Yes | Series id, price field, or number | |
| name | Yes | What this alert means, e.g. 'RSI oversold' | |
| note | No | Free text for your own reference | |
| right | Yes | ||
| panels | No | Oscillators the condition references | |
| symbol | Yes | IDX ticker, e.g. BBRI | |
| overlays | No | Price series the condition references | |
| cooldown_minutes | No | Minimum minutes between fires. Default 0 (once per bar). |