Documentation for Deptle Terminal.
Guides for setup, scripting, troubleshooting, and more.
Declaring an indicator
Declare an indicator as a class field, then update it inside on_tick.
- Four indicators are built in:
RollingMeanandRSIfor whole numbers;RollingMeanF32andRSIF32for decimals. - Write
sma = RollingMean(window=20)with a fixed whole number, orwindow=fastwith the name of anintParameterwhosemin,default, andmaxare all above 0. - Two other spellings compile: the annotated form
sma: RollingMean = RollingMean(window=...)and the legacysma: RollingMean = State(window=...).
indicators.py
Updating each tick
Call self.<name>.update(value) for the indicator's next value.
- Whole-number indicators (
RollingMean,RSI) take whole-number input. - Decimal indicators (
RollingMeanF32,RSIF32) take decimals; other numbers convert in. - Calling
.update(...)on something that is not an indicator is a compile error.
How they behave at runtime
Indicators keep their state between updates.
RSIandRSIF32return a neutral 50 until they have seen a full window, and when there is no downward movement to divide by.RollingMeanandRollingMeanF32average whatever they have so far during warmup.- Window values are clamped into valid bounds at runtime.
A fixed window creates a hidden, non-tunable parameter named deptle_dsl_window_0, deptle_dsl_window_1, ... (numbered in declaration order) that appears in the compiled parameter list; the deptle_dsl_window_ prefix is reserved.
Need help?
If launch fails, include your loader version, OS, and latest crash log so support can reproduce the issue quickly.