AmritSd / Institutional-ownership-impact-on-stocks-near-one-dollar

0 stars 1 forks source link

Function to identify and buy stocks that dip below a certain threshold #7

Open AmritSd opened 1 year ago

AmritSd commented 1 year ago

Make function that will, when passed data for an individual stock, track it's 30, 90, and 180 day return whenever it dips below a certain threshold. Also incorporate the ability to make a long-short portfolio that shorts the fama-french factors before buying the stock.

Implemented in strategy/one_stock.ipynb

AmritSd commented 1 year ago

Expected input:

Price data for just a single stock: (with sorted dates)

Image

Daily fama-french factors with lags

Image

Expected output:

An array of trades made. Empty if none were made.

Each trade will be a dict. containing the following fields:

AmritSd commented 1 year ago

The program accounts for delistings

Image

See last trade