Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

architecture

Setup

  1. Pull the private repo:

    git clone https://github.com/michaelobr/GHSL.git

  2. Create virtual environment in project root folder:

    python -m venv env

  3. Activate the virtual environment:

    source env/bin/activate Mac OS X

    env\Scripts\activate PC

    To deactivate at anytime you can do:

    env\Scripts\deactivate

  4. Install dependencies:

    pip install -r requirements.txt

  5. Update config.py in project root directory with your personal api_key and secret_key from Alpaca.

  6. Run trading algo (currently under development)

    python run.py

Algo ideas

  1. Option flow strategy

    1. Configuration #1:

      1. Minimum 200 contracts
      2. ES=F above daily pivot (has been suspended for now)
      3. Stock and ES=F above 9EMA
      4. Price>=.40
      5. Spot >= 10 and spot<=80
      6. Type sweep
      7. Side > 0 (means MID, between BID and ASK)
      8. US market only via /add -e filter on Trade-Alert
      9. Trade only if ES=F is above 9EMA
      10. Market cap > $2B
      11. Excludes SSR, pre/post-earnings, 52weekslow, spread greater than $0.10
      12. Trade Alert filter: /add @‌STOCK -option 200 where sweep and side>0 and price>=.40 and spot>=10 and spot<=80 [FOXTROT]
    2. Configuration #2:

      1. SPY above daily pivot
      2. Minimum 250 contracts
      3. Stock above 9EMA
      4. Price>=.40
      5. Spot >= 10 and spot<=80
      6. Type call
      7. Two or more calls in the last 10 mins
      8. Side > 1
      9. Holding time 5s, 10s, 15s, 20s, 30s, 1 min, 2 mins, 30 mins, 60 mins
      10. Trade only if ES=F is above 9EMA
      11. Trade Alert filter: /add @STOCK -option 250 where call and side>1 and price >=.40 and spot >= 10 and spot <=80 [TANGO]
    3. Configuration #3:

      1. SPY above daily pivot
      2. Stock above 9EMA
      3. Price>=.40
      4. Spot >= 10 and spot<=80
      5. Type call or sweep
      6. Two or more calls in the last 10 mins
      7. Unusual volume -uvol mult>=2
      8. Holding time 5s, 10s, 15s, 20s, 30s, 1 min, 2 mins, 30 mins, 60 mins
      9. Trade Alert filter: /add @STOCK -uvol where mult>=2 and price >=.40 and spot >= 10 and spot <=80 [ALFA]
  2. Traditional portfolio allocation theory (i.e. 60% gold, 40% S&P, etc.)

  3. Industry group (i.e. beer companies)

  4. Random walk (all in long on one asset per day)

  5. Corn yields (utilizing weather data)

  6. Inflation Indexed Bonds (CPI data. Pricing source data? Easily tradable?)

  7. EMA trend following strategy (talib for EMA calculation)

  8. Mean reversion strategy

Financial metrics to look into

Todo

Reference the project Trello.

Additional tech stacks to integrate

  • Docker
  • Cloud (AWS, Digital Ocean, Linode)

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages