# Know Sure Thing (KST)

> QuantNexus indicator page for the KST trend oscillator.

**Route**: `/quantnexus/indicators/kst/`

## What It Does

KST combines multiple smoothed rate-of-change legs into one composite trend oscillator.

## Formula

`KST = ROCMA1 + 2 * ROCMA2 + 3 * ROCMA3 + 4 * ROCMA4`  
`Signal = SMA(KST, rsignal)`

Each `ROCMA` leg is built from a different rate-of-change period and moving-average smoothing pair.

## Parameters

- `rp1` - default `10`
- `rp2` - default `15`
- `rp3` - default `20`
- `rp4` - default `30`
- `rma1` - default `10`
- `rma2` - default `10`
- `rma3` - default `10`
- `rma4` - default `10`
- `rsignal` - default `9`
- `rfactors` - default `[1.0,2.0,3.0,4.0]`
- `_rmovav` - default `SMA`
- `_smovav` - default `SMA`

## C++23 API

```cpp
#include <nonabt/indicators/kst.hpp>
auto kst = std::make_unique<nonabt::KST>(data().close(), 10, 15, 20, 30, 10, 10, 10, 10, 9, "[1.0,2.0,3.0,4.0]", "SMA", "SMA");
```

## Common Usage

- Use the signal line for crossover entries and exits.
- Confirm trend strength when all four ROC legs point the same way.
- Pair it with a support or breakout structure to reduce false signals.
