Build the average yourself
A simple moving average gives each close in its window the same weight. Five hypothetical closes of 10, 11, 12, 11 and 11 sum to 55. The five-period average is 11. If the next close is 15, the 10 drops out and the new average becomes 12. The line moves by just one unit despite the four-unit rise in the latest close.
Recreate the setup
In the traderoom’s indicator selector, look for Moving Average. Choose the simple calculation and a period of five, using close as the input where the setting is offered. Select ordinary candles. Use five completed candles from your chosen instrument and compare your own calculation with the plotted value.
Compare two windows
Add a longer average on the same interval. Look at a sharp change and then a sideways period. The longer average incorporates more older prices. Count how often price crosses each average in the sideways period and keep the same date range for both counts.
Write down what the test measures
The exercise measures smoothing and lag. To evaluate a trading rule, you would also need defined entries and exits, realistic costs and a separate sample. Picking the line that looks best after seeing the chart builds hindsight into the result.
Count a crossover consistently
A repeatable definition could require yesterday’s completed close to be at or below its five-period average and today’s completed close to finish above its own five-period average. A move above the line halfway through today’s candle does not satisfy this rule until the candle closes above it. Write down how you treat exact equality. Changing the equality rule after inspecting the chart can silently change which observations enter your sample.
Build a small spreadsheet check
Put consecutive closes into a single column, starting in cell B2. In C6 enter =AVERAGE(B2:B6) and fill downward. C6 is paired with the fifth close, so align its time with B6. Leave the first four average cells empty because their full windows are missing. Change just the first close by five units. The first complete average changes by one unit and the next complete average remains the same because that input has rolled out.
Find the cause of a mismatch
Check the plotted method first. An exponential moving average uses different weights, so a five-period EMA will rarely match your five-period SMA. Match the input price, candle type, interval and end time, then check whether you copied displayed prices rounded to fewer decimals. Compare several consecutive completed values. A consistent one-candle shift suggests you paired each average with the start of its window rather than its final candle.
Sources & further reading
Try the Candlestick explorer.
Related guides
This is for information purposes only and should not be considered as personal and/or investment advice and/or incentive to continue trading. We do not guarantee the accuracy, validity, timeliness, or completeness of any information or data made available and assume no liability as to any loss arising from any investment based on the content of this material.