Real-Time Intraday SMA
Calculates a Simple Moving Average using intraday data at specified intervals.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| Symbol | string | Yes | Stock ticker symbol |
| Interval | string | No | Time interval (1m, 5m, 15m, 30m, 60m) |
| Lookback | number | No | Number of periods (default 20) |
| Field | string | No | Price field: close, open, high, low |
| Index | number | No | Bar index (0 = current bar) |
Notes
- Real-time intraday data
- Updates during market hours
Syntax
=RTI_SMA(Symbol, [Interval], [Lookback], [Field], [Index])Parameters
symbolstringRequired
Stock ticker symbol
intervalstring
Time interval (1m, 5m, 15m, etc.)
lookbacknumber
Number of periods for SMA
fieldstring
Price field (close, open, high, low)
indexnumber
Bar index (0 = current)
Returns
number
Simple Moving Average value
Examples
When to Use
- Intraday trend analysis
- Day trading signals
- Scalping strategies
- Real-time technical analysis
When NOT to Use
| Scenario | Use Instead |
|---|---|
| Daily SMA | SMA() |
| Intraday RSI | RTI_RSI() |
| Exponential MA | EMA() functions |
Common Issues & FAQ
What intervals are supported?
1m, 5m, 15m, 30m, 60m are common intervals.
Why is data not updating?
Ensure market is open and symbol is actively trading.
Excel Templates Using Real-Time Intraday SMA
These ready-made MarketXLS templates call RTI_SMA() in their worksheet formulas. Open one to see the function working inside a complete model.
Related Formulas
More MarketXLS MarketXLS Analytics formulas you can use in the same worksheet:
- Real-Time Intraday Time
- Real-Time Intraday Volume
- Real-Time Permission
- Real-Time Stock Data
- Remove Symbols
- Revenue Growth
- Revenue Per Employee
- RSI
See RTI_SMA used in a complete workbook: RTI Functions: Real-Time Streaming Technical Indicators in Excel (Complete Guide 2026)
