# Constant

> The Constant indicator sets a fixed numerical value in flexible strategy conditions for comparison against other indicators.

**Constant** is an indicator that sets a fixed numerical value within flexible strategy conditions. It is used alongside other indicators to compare their current values against a specific number — a level, threshold, or target price.

:::note[Note]
The Constant **does not calculate any market data** and does not change over time. It is simply a fixed number that other indicators are compared against.
:::

## How It Works

1. You set a numerical value in the indicator settings.
2. When the condition is evaluated, the bot compares the current value of the selected indicator against this number.
3. If the comparison is true — the condition is met and the bot executes the corresponding action.

> **Logic example:** RSI (current value, e.g. 72) > Constant (70) → condition met → action triggered

## Configurable Parameters

The Constant indicator has **only one** configurable parameter:

- **Value** — any number that will be used in the condition.

## Where It Is Used

Constant is most commonly used with indicators that have well-known numerical levels:

| Indicator | Typical values |
|---|---|
| **RSI** | 30 (oversold), 70 (overbought) |
| **RVI** | 50 (zero line) |
| **Stochastic** | 20 (oversold), 80 (overbought) |
| **CCI** | −100, +100 (normal range boundaries) |
| **Volume** | Any volume amount in base currency |

## Usage Examples

### RSI — trading overbought and oversold levels

```
RSI(14) > Constant(70)   →  sell signal (overbought)
RSI(14) < Constant(30)   →  buy signal (oversold)
```

---

### RVI — zero line crossover

```
RVI(10) > Constant(50)   →  bullish momentum
```

---

### Volume — minimum volume filter

Exclude signals during low market activity:

```
Candle (Volume) > Constant(1000)   →  sufficient volume for entry
```

:::tip[Tip]
Combine Constant with multiple indicators to build multi-level filters. For example, only enter a position when both RSI and volume conditions are met simultaneously.
:::

## Impact on Strategy

Constant is the simplest way to define a numerical threshold without any additional calculations. It makes strategy conditions transparent and easy to read — the comparison value is always explicit and visible.

Properly chosen Constant values significantly affect signal frequency and entry quality. Levels that are too wide produce many false signals; levels that are too narrow miss real market moves.

:::caution[Important]
Constant does not adapt to market conditions. An RSI level of 70 may be relevant in a quiet market, but during a strong trend this threshold can be reached much more frequently. Revisit your Constant values whenever market conditions change significantly.
:::

## Summary

Constant is the right tool for these scenarios:

- **Oscillators with fixed levels** — RSI, Stochastic, CCI, RVI
- **Volume threshold filters** — only entering when market activity is sufficient
- **Price levels** — for example, entering when a target price is reached
- **Multi-condition strategies** — combining multiple Constants for different indicators

**Use Constant whenever you need to compare an indicator's value against a specific number** — it is faster and more readable than creating a placeholder indicator.
