Indicator Calculator

The Indicator Calculator lets you compute technical indicators on your stored candle data and visualize them overlaid on the price chart. This is useful for exploring how an indicator behaves on a specific pair and timeframe before using it in a strategy.

What It Does

The calculator takes your stored candle data, applies a technical indicator formula, and displays the resulting values both as a line on the chart and in a data table. You can experiment with different indicator types and parameters without writing any strategy code.

Using the Calculator

Step 1: Select Your Data

Choose the inputs for the calculation:

SettingDescriptionExample
PairThe trading pair to analyzeXBTUSD, BTCUSDC, etc.
TimeframeThe candle resolution to use1h
Date rangeThe time window to calculate over2024-06-01 to 2024-09-01

Note

Make sure you have downloaded data for the selected pair and date range. The calculator works on locally stored Arrow files -- it does not fetch data from the exchange.

Step 2: Choose an Indicator

Select the indicator type and configure its parameters:

IndicatorParametersDescription
SMA (Simple Moving Average)Period (e.g., 20)Average of the last N closing prices
EMA (Exponential Moving Average)Period (e.g., 12, 26)Weighted average giving more weight to recent prices
RSI (Relative Strength Index)Period (e.g., 14)Momentum oscillator measuring overbought/oversold conditions
Bollinger BandsPeriod (e.g., 20), Std Dev (e.g., 2.0)Price envelope based on standard deviations from SMA
MACDFast (12), Slow (26), Signal (9)Trend-following momentum indicator using EMA differences

Tip

If you are new to indicators, start with SMA(20) or EMA(20) -- they are the simplest to interpret. The line follows the price trend, smoothing out noise. When price crosses above the line, it may signal an uptrend; when it crosses below, a downtrend.

Step 3: View the Results

After clicking calculate, the results appear in two forms:

Chart Overlay

The indicator is drawn directly on the price chart (or in a separate pane below the chart for oscillators like RSI and MACD):

  • SMA and EMA appear as lines overlaid on the candlestick chart.
  • Bollinger Bands appear as three lines (upper band, middle SMA, lower band) with the area between them shaded.
  • RSI appears in a separate pane below the price chart with horizontal reference lines at 30 and 70.
  • MACD appears in a separate pane with the MACD line, signal line, and histogram bars.

Data Table

A table shows the calculated indicator values alongside the candle data:

TimestampCloseSMA(20)
2024-08-15 14:0058,420.5058,195.30
2024-08-15 15:0058,510.0058,210.75
.........

Note

Indicators require a warm-up period before producing meaningful values. For example, SMA(20) needs at least 20 candles of data before it can output its first value. The first N-1 rows will show blank or null values for the indicator -- this is expected behavior, not a bug.

Practical Examples

Exploring EMA Crossovers

To see how a golden cross / death cross strategy might work:

  1. Select a pair and timeframe (e.g., XBTUSD 1h).
  2. Add EMA(12) -- this is the fast line.
  3. Add EMA(26) -- this is the slow line.
  4. Look for points where the fast EMA crosses above the slow EMA (potential buy signals) or below it (potential sell signals).

Finding RSI Extremes

To identify oversold and overbought zones:

  1. Select a pair and timeframe.
  2. Add RSI(14).
  3. Look for periods where RSI drops below 30 (oversold -- potential buy opportunity) or rises above 70 (overbought -- potential sell opportunity).

Evaluating Bollinger Band Squeezes

To spot potential breakout setups:

  1. Select a pair and timeframe.
  2. Add Bollinger Bands(20, 2.0).
  3. Look for periods where the bands narrow significantly (a "squeeze"), which often precedes a large price move.

Tip

The indicator calculator is a sandbox for experimentation. Use it to build intuition about how indicators respond to different market conditions before committing those indicators to a strategy TOML file.