-
Pull the private repo:
git clone https://github.com/michaelobr/GHSL.git -
Create virtual environment in project root folder:
python -m venv env -
Activate the virtual environment:
source env/bin/activateMac OS Xenv\Scripts\activatePCTo deactivate at anytime you can do:
env\Scripts\deactivate -
Install dependencies:
pip install -r requirements.txt -
Update
config.pyin project root directory with your personalapi_keyandsecret_keyfrom Alpaca. -
Run trading algo (currently under development)
python run.py
-
Option flow strategy
-
Configuration #1:
- Minimum 200 contracts
- ES=F above daily pivot (has been suspended for now)
- Stock and ES=F above 9EMA
- Price>=.40
- Spot >= 10 and spot<=80
- Type sweep
- Side > 0 (means MID, between BID and ASK)
- US market only via /add -e filter on Trade-Alert
- Trade only if ES=F is above 9EMA
- Market cap > $2B
- Excludes SSR, pre/post-earnings, 52weekslow, spread greater than $0.10
Trade Alert filter: /add @STOCK -option 200 where sweep and side>0 and price>=.40 and spot>=10 and spot<=80 [FOXTROT]
-
Configuration #2:
- SPY above daily pivot
- Minimum 250 contracts
- Stock above 9EMA
- Price>=.40
- Spot >= 10 and spot<=80
- Type call
- Two or more calls in the last 10 mins
- Side > 1
- Holding time 5s, 10s, 15s, 20s, 30s, 1 min, 2 mins, 30 mins, 60 mins
- Trade only if ES=F is above 9EMA
Trade Alert filter: /add @STOCK -option 250 where call and side>1 and price >=.40 and spot >= 10 and spot <=80 [TANGO]
-
Configuration #3:
- SPY above daily pivot
- Stock above 9EMA
- Price>=.40
- Spot >= 10 and spot<=80
- Type call or sweep
- Two or more calls in the last 10 mins
- Unusual volume -uvol mult>=2
- Holding time 5s, 10s, 15s, 20s, 30s, 1 min, 2 mins, 30 mins, 60 mins
Trade Alert filter: /add @STOCK -uvol where mult>=2 and price >=.40 and spot >= 10 and spot <=80 [ALFA]
-
-
Traditional portfolio allocation theory (i.e. 60% gold, 40% S&P, etc.)
-
Industry group (i.e. beer companies)
-
Random walk (all in long on one asset per day)
-
Corn yields (utilizing weather data)
-
Inflation Indexed Bonds (CPI data. Pricing source data? Easily tradable?)
-
EMA trend following strategy (talib for EMA calculation)
-
Mean reversion strategy
- Sharpe ratio
- Maximum drawdown
talibmodule- Intrinio module
- FINVIZ module
Reference the project Trello.
- Docker
- Cloud (AWS, Digital Ocean, Linode)
