Documentation for Deptle Terminal.
Guides for setup, scripting, troubleshooting, and more.
Declaring Indicators
Declare indicators at class scope, then update them inside on_tick.
RollingMean(i64),RSI(i64).RollingMeanF32/RollingMeanF(float).RSIF32/RSIF(float).windowmust reference an existing parameter with min/default/max all > 0.
indicator_declare.py
Update Rules
Call self.<indicator>.update(value) each time you want the next indicator value.
- Integer indicators require i64 input.
- Float indicators accept float and numeric values (valid numeric casts are inserted).
- Calling
.update(...)on non-indicator fields is a compile error.
Runtime Behavior
Indicators behave predictably and keep their state between updates.
- Window/period values are clamped into valid bounds at runtime.
- RSI returns neutral
50during warmup and zero-denominator cases. - All indicator state persists in strategy state memory between ticks.
Need help?
If launch fails, include your loader version, OS, and latest crash log so support can reproduce the issue quickly.