Skip to content
beta
RU Laboratory

Your own indicator — in words, blocks or a formula.

Built-in indicators aren’t always enough. In kquant you can describe a condition in your own words, build it from blocks or write it as a formula — and test it as strictly as everything else.

The Laboratory interface is in Russian for now.

You write

Buy when volume is twice the 20-candle average and the candle closed above its open

Formula
long = volume > 2 * sma(volume, 20) and close > open
Signals on history

Three ways, one formula.

Every way produces the same readable formula. You can open it, edit it and save it as your own indicator.

  1. In words

    Write the condition as a plain sentence. AI asks about anything unclear, offers up to three readings, writes the formula and shows where and how often it fires on history. It doesn’t “improve” the logic: it writes exactly what you said.

  2. With blocks

    Indicators, comparisons and events snap into a condition with no code. Every block has a plain name and labelled parameters.

  3. As a formula

    For precision the blocks don’t give: 73 functions, intermediate variables and “first this, then within N candles that” scenarios.

What a formula can set.

One formula works in all three modes and on five exchanges. Its output sets its role.

long · short
An entry signal for a single coin or a token book.
pass
A filter: the other conditions trade only while it holds.
score
A token score for the factor portfolio: higher goes long, lower goes short.
input()
A number the optimiser will tune. Each one adds a dimension to the search.

73 functions.

Everything a formula is built from. Built-in indicators are computed by the same functions as in the backtest.

Indicators 27

rsi atr atr_pct adx plus_di minus_di macd_line macd_signal macd_hist bb_lower bb_mid bb_upper bb_width kc_lower kc_upper donchian_lower donchian_upper stoch_k stoch_d cci willr mfi obv vwap supertrend_dir kaufman_er parkinson_vol

Events 15

crossover crossunder cross rising falling barssince count within valuewhen rising_at falling_at highest_since lowest_since pivot_low pivot_high

Window 12

highest lowest sum stdev median percentile zscore percentrank correlation linreg_slope roc change

Math 12

abs log exp sqrt sign round pow min max clamp nz na

Smoothing 7

sma ema rma wma hma vwma adaptive_ema

A formula can’t cheat the test.

  • Can’t see the future

    A formula receives only closed candles; x[1] is the previous one. The order goes at the next open.

  • Sandboxed

    A formula never runs as a program: it is assembled from verified functions and evaluated with no network or files.

  • Every version is an attempt

    Runs of every edit to your formula count towards the trial penalty. A hundred tweaks for a nicer curve are a hundred trials, and the bar goes up.

Describe the idea in words — testing takes minutes.

Open the Laboratory

The Laboratory interface is in Russian for now.