We use cookies.This website uses essential cookies to operate core features. With your consent, we also use analytics cookies to understand traffic and improve the service. For more details, see our .
If this tool helped you, you can buy us a coffee ☕
Query futures candlestick data and automatically calculate the Simple Moving Average (SMA) to assist with trend analysis.
tools.futures-kline.form.symbolHint
tools.futures-kline.emptyPlaceholder

Chinese RMB Amount Converter
Accurately convert between numeric amounts and Chinese uppercase/lowercase financial characters to meet formatting standards for Chinese contracts, invoices, and banking.

Return on Investment (ROI) Calculator
Enter your investment amount and dates to quickly calculate ROI and annualized return, helping you make smarter investment decisions.

FVIFA Calculator
Calculate the Future Value Interest Factor of an Annuity (FVIFA) instantly. Enter your interest rate and periods to estimate the future value of regular investments with this free online calculator.

CAGR Calculator
Calculate the Compound Annual Growth Rate (CAGR) of your investments. Enter the initial value, final value, and number of years to get an accurate annualized return assessment.

Chinese RMB Amount Converter
Accurately convert between numeric amounts and Chinese uppercase/lowercase financial characters to meet formatting standards for Chinese contracts, invoices, and banking.

Return on Investment (ROI) Calculator
Enter your investment amount and dates to quickly calculate ROI and annualized return, helping you make smarter investment decisions.

FVIFA Calculator
Calculate the Future Value Interest Factor of an Annuity (FVIFA) instantly. Enter your interest rate and periods to estimate the future value of regular investments with this free online calculator.

CAGR Calculator
Calculate the Compound Annual Growth Rate (CAGR) of your investments. Enter the initial value, final value, and number of years to get an accurate annualized return assessment.

Bond YTM Calculator
Enter the face value, market price, coupon rate, and time to maturity to accurately calculate the annualized yield to maturity (YTM) of a bond.
The closing prices of a rebar futures contract for 5 consecutive trading days are 3800, 3820, 3810, 3830, and 3850 (RMB/ton). Open the "Moving Average" module in the calculator above, enter these 5 numbers, select a period of 5, and the current value of the 5-day moving average will immediately display on the right as 3822 RMB/ton. This is the example we will walk through step-by-step below.
The Simple Moving Average (SMA) is one of the most commonly used technical indicators. The formula is:
SMA = (P₁ + P₂ + … + Pₙ) / n
Where P₁ to Pₙ are the closing prices (or specified prices) of the most recent n periods, and n is the number of periods.
The intuition behind this formula is to filter out daily noise and reveal the trend direction by averaging prices over a past period. For example, if the 5-day moving average is higher than the current price, it indicates that recent prices are below the average cost, suggesting short-term weakness.
Using rebar futures as an example with the calculator above:
Interpretation: Is 3822 higher than the last closing price of 3850? No, 3822 < 3850, which means the current price (3850) is above the moving average, indicating a relatively strong short-term trend. However, note that a short period makes the signal highly sensitive.
Comparative Example 1 (10-Day Moving Average): Using the same sequence but changing the period to 10, the calculator will prompt "At least 10 data points are required." This edge case demonstrates that the number of periods cannot exceed the number of data points.
Comparative Example 2 (Moving Average During a Price Decline): Suppose the sequence is changed to 3900, 3880, 3850, 3820, 3800 (continuous decline). Entering a period of 5 gives a moving average = (3900+3880+3850+3820+3800)/5 = 3850. Interpretation: 3850 > the last closing price of 3800. The moving average is above the price, forming resistance and confirming a downtrend.
| Relationship Between MA and Current Price | Signal Meaning |
|---|---|
| MA < Price | Short-term price is above average cost; bullish trend bias |
| MA > Price | Short-term price is below average cost; bearish trend bias |
| MA ≈ Price (within ±0.5%) | Consolidation; direction unclear |
Important: Moving averages are lagging indicators and cannot predict future prices on their own. The moving average curves upward in a bullish trend and downward in a bearish trend. It is more reliable when used in conjunction with candlestick patterns.
This tool only provides numerical calculations and displays of simple moving averages and does not constitute investment advice. For actual trading decisions, please consider market conditions, risk tolerance, and professional advice. Calculation results are based on the raw prices you input, without adjustments for contract rollovers or price gaps. Data precision is rounded to two decimal places and may differ slightly from professional trading software. This tool does not store your data; all calculations are performed locally in your browser.
You can now enter your own futures data into the calculator above, try moving average values under different periods, and observe the relative position changes between the price and the moving average.