An Exception was encountered at 'In [9]'.

TheDailyCalls.com Notebook¶

Date¶

datetime.datetime(2026, 3, 9, 10, 37, 16, 301660)

Performance¶

Daily Returns¶

- ^VIX: No data found for this date range, symbol may be delisted
ticker ^VIX

Year to date returns¶

Failed to get ticker '^VIX' reason: Expecting value: line 1 column 1 (char 0)
- ^VIX: No data found for this date range, symbol may be delisted
ticker ^VIX

Moving Averages¶

Execution using papermill encountered an exception here and stopped:

[*********************100%***********************]  1 of 1 completed

1 Failed download:
- ^VIX: No data found for this date range, symbol may be delisted
---------------------------------------------------------------------------
ValueError                                Traceback (most recent call last)
Cell In[9], line 1
----> 1 mav = get_moving_averages(symbol)
      2 mav[-5:]

File /var/www/reports/wallstreet.py:195, in get_moving_averages(ticker)
    193 # add the simple moving averages
    194 hist = hist.assign(SMA8=get_moving_avg(8, series))
--> 195 hist = hist.assign(SMA21=get_moving_avg(21, series))
    196 hist = hist.assign(SMA30=get_moving_avg(30, series))
    197 if len(hist) >= 200:

File ~/.local/share/virtualenvs/reports-_ZceJivp/lib/python3.8/site-packages/pandas/core/frame.py:4886, in DataFrame.assign(self, **kwargs)
   4883 data = self.copy()
   4885 for k, v in kwargs.items():
-> 4886     data[k] = com.apply_if_callable(v, data)
   4887 return data

File ~/.local/share/virtualenvs/reports-_ZceJivp/lib/python3.8/site-packages/pandas/core/frame.py:3978, in DataFrame.__setitem__(self, key, value)
   3975     self._setitem_array([key], value)
   3976 else:
   3977     # set column
-> 3978     self._set_item(key, value)

File ~/.local/share/virtualenvs/reports-_ZceJivp/lib/python3.8/site-packages/pandas/core/frame.py:4172, in DataFrame._set_item(self, key, value)
   4162 def _set_item(self, key, value) -> None:
   4163     """
   4164     Add series to DataFrame in specified column.
   4165 
   (...)
   4170     ensure homogeneity.
   4171     """
-> 4172     value = self._sanitize_column(value)
   4174     if (
   4175         key in self.columns
   4176         and value.ndim == 1
   4177         and not is_extension_array_dtype(value)
   4178     ):
   4179         # broadcast across multiple columns if necessary
   4180         if not self.columns.is_unique or isinstance(self.columns, MultiIndex):

File ~/.local/share/virtualenvs/reports-_ZceJivp/lib/python3.8/site-packages/pandas/core/frame.py:4912, in DataFrame._sanitize_column(self, value)
   4909     return _reindex_for_setitem(Series(value), self.index)
   4911 if is_list_like(value):
-> 4912     com.require_length_match(value, self.index)
   4913 return sanitize_array(value, self.index, copy=True, allow_2d=True)

File ~/.local/share/virtualenvs/reports-_ZceJivp/lib/python3.8/site-packages/pandas/core/common.py:561, in require_length_match(data, index)
    557 """
    558 Check the length of data matches the length of the index.
    559 """
    560 if len(data) != len(index):
--> 561     raise ValueError(
    562         "Length of values "
    563         f"({len(data)}) "
    564         "does not match length of index "
    565         f"({len(index)})"
    566     )

ValueError: Length of values (20) does not match length of index (7)

Graph¶

Disclaimer: I am not a professional investment adviser and my opinions are based on my own technical analysis. Please consult an investment professional before making investment decisions.