Change Value From Previous Close
Returns the dollar (or point) change of the current price compared to the previous trading day's closing price.
Return Format
The function returns a dollar value:
- Positive number = price increase
- Negative number = price decrease
- 0 = no change
Supported Symbol Formats
| Type | Format | Example |
|---|---|---|
| US Stocks | SYMBOL | AAPL, MSFT |
| ETFs | SYMBOL | SPY, QQQ |
| Indices | ^SYMBOL | ^SPX, ^VIX |
| Crypto | SYMBOL-USD | BTC-USD |
Notes
- Data is typically delayed 15 minutes
- Returns "NA" if data is unavailable
- For indices, returns point change
Examples
When to Use
- Tracking daily price movements in dollar terms
- Building performance dashboards
- Calculating daily P&L on positions
- Displaying stock tickers with change
When NOT to Use
| Scenario | Use Instead |
|---|---|
| Percentage change | Change_PercentChange() |
| Change from specific date | StockReturn() |
| Real-time streaming change | QM_Stream_Change() |
| YTD dollar change | Calculate from YTD return |
Common Issues & FAQ
Q: How do I get percentage change instead of dollar change?
A: Use Change_PercentChange() or ChangeinPercent() for percentage values.
Q: Why is the change different from what I calculate? A: Change is calculated from the adjusted previous close, which accounts for dividends and splits.
Q: How do I calculate P&L on my position?
A: Multiply the change by your number of shares: =Change("AAPL") * SharesOwned
