Trading practice

Indicator calculation practice

Calculate SMA, EMA and RSI, separate MACD components, and apply a precise completed-bar crossover definition.

Start exercise 1 Choose an exercise set

6 exercises in this set. No sign-up required.

Saved resources

Before you begin

The inputs are hypothetical completed observations or explicitly supplied smoothed values. Use the stated seed and update convention. Correct indicator arithmetic describes the inputs; it does not establish a profitable entry, an optimal setting or an independent prediction.

Read the companion guide.

Enable JavaScript to check answers and reveal scenarios interactively. The answer explanations remain available below without it.

0 of 6 exercises reviewed on this visit

Exercise 1 · Hypothetical example

Calculate the five-period SMA after the sixth close arrives. Enter price units to two decimal places.

Six consecutive hypothetical hourly closes, oldest first, are 100, 102, 101, 103, 104 and 110 price units. Calculate the arithmetic mean of the latest five completed closes. Every observation has equal weight inside that five-close window.

Hypothetical close observations: initial data6 numbered close observations. Only initial observations are plotted and included in the price scale. The accompanying table gives every displayed value. The horizontal scale is observation order, not elapsed time.HYPOTHETICAL PRACTICE CHARTSolid line: initial close observationsPrice98.8101.9105.0108.1111.2123456Observation number
Hypothetical example. Six completed hypothetical hourly closes in arbitrary price units; use the last five for the requested SMA.
Read the 6 displayed observations as a table

Original hypothetical data. Price units follow the scenario. Observation numbers show sequence, not elapsed time. Only the initial observations are included.

Hypothetical close observations: initial data
ObservationClose
1100
2102
3101
4103
5104
6110
Enter your answer in price units

Enter 2 decimal places, following the rounding rule in this exercise. Use a decimal point and no thousands separators.

Exercise 2 · Hypothetical example

Calculate the updated five-period EMA. Enter price units to four decimal places.

The previous five-period EMA is supplied as exactly 102 price units. The next completed hypothetical hourly close is 110. Use the coefficient α = 2 ÷ (5 + 1), with new EMA = previous EMA + α × (new close − previous EMA). The supplied seed is part of the exercise; do not replace it with a different initialisation.

Enter your answer in price units

Enter 4 decimal places, following the rounding rule in this exercise. Use a decimal point and no thousands separators.

Exercise 3 · Hypothetical example

What is the RSI, and what does this calculation establish?

For a hypothetical completed observation, the already-smoothed average gain is 1.5 price units and average loss magnitude is 0.5. Use RS = average gain ÷ average loss and RSI = 100 − 100 ÷ (1 + RS). No future prices or trade-performance evidence are supplied.

Choose the interpretation supported by the information given

Exercise 4 · Hypothetical example

After the next close falls by 3 price units, what is the updated RSI to two decimal places?

A hypothetical 14-period Wilder calculation has previous average gain 2 and previous average loss magnitude 1. The next completed close-to-close change is −3. Update each average as (previous average × 13 + current non-negative gain or loss magnitude) ÷ 14. The current gain is 0 and current loss magnitude is 3.

Choose the interpretation supported by the information given

Exercise 5 · Hypothetical example

Which interpretation correctly separates the MACD line and histogram?

At one hypothetical completed observation, the fast price EMA is 101.0, slow price EMA 102.0 and supplied signal line −1.4, all in the same arbitrary price units. Use MACD = fast EMA − slow EMA and histogram = MACD − signal. The signal value comes from its existing smoothed history; it is not recalculated from this one snapshot.

Choose the interpretation supported by the information given

Exercise 6 · Hypothetical example

Has this precisely defined upward crossover occurred at the latest close?

Define an upward crossover only when fast average was at or below slow average on the previous completed hourly bar and is strictly above slow on the current completed hourly bar. Previous fast/slow values were 100/101. Current fast/slow values are 102/102. These supplied averages are hypothetical and already calculated.

Choose the interpretation supported by the information given

Prepared by InsomniCapital, checked 2 October 2026. Original hypothetical exercises; source explanations and limitations are available in the companion guide. Risk disclosure.