while25.params. Read them with a default — a plain run passes an empty dict.| Type | Signature |
|---|---|
Int | Int("length", default=20, minimum=2, maximum=500, step=1, label="") |
Float | Float("mult", default=2.0, minimum=0.1, maximum=10.0, step=0.1) |
Bool | Bool("use_close", default=True) |
Str | Str("note", default="") |
Enum | Enum("source", choices=["close", "hlc3"], default="close") |
Symbol | Symbol("hedge", label="Hedge") |
Every type takes label=. Values arrive typed; one out of range fails the start naming the input, and a default outside its bounds raises when the class is declared. On a strategy the form is the Deploy window. A Symbol’s value is the instrument key and exists only once the module runs, so turn its prices on with while25.subscribe(key, on_tick=self.on_coin), not a decorator. Import the types directly: inside a class body inputs shadows the module.
numpy and pandas are available in the runtime. Get the desktop app to run it — Python runs beside the engine, which a browser cannot host.