Dealing with Data Flashcards
tick
finest resolution of data
represents a successful buy/sell match
OHLCV
open - price at start of time period high - highest price in period low - lowest price in period close - price at end of period volume - total volume
stock splits
generally because price is too high
appears as a price drop
solution is adjusted close
Divide closing price by stock split amount
eg
adjclose = actual close after split
adjclose = actual close / 2 for time before a 2:1 split
adjclose = actual close / 4 for time before 4:1 split etc
dividends
cash payout from the company
adjust stock price by proportion of dividend
eg
adjclose = actual close after dividend
adjclose = actual close adjusted down by dividend amount
survivor bias
only considering live stocks from the benchmark universe (eg current s+p)
this inherently favors all stocks that did well in the past, and ignores those that shutdown.
Need to use bias free data