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
Examples
When to Use
- Intraday trend analysis
- Day trading signals
- Scalping strategies
- Real-time technical analysis
When NOT to Use
Common Issues & FAQ
Q: What intervals are supported? A: 1m, 5m, 15m, 30m, 60m are common intervals.
Q: Why is data not updating? A: Ensure market is open and symbol is actively trading.
