Skip to content

Instantly share code, notes, and snippets.

View mrwonderfulness's full-sized avatar

Mister Wonderfulness mrwonderfulness

  • Wonderfulness Inc.
  • Antarctica
View GitHub Profile
@mrwonderfulness
mrwonderfulness / vsa.py
Created June 19, 2022 04:06 — forked from m-root/vsa.py
Volume Spread Analysis
import talib
import statsmodels.api as sm
import pandas as pd
def initialize(context):
context.security = symbol('AAPL')
#set_universe(universe.DollarVolumeUniverse(floor_percentile=98.0,ceiling_percentile=100.0))
def bar_data(OHLC_type, bars_nr):
bar_data_func = (history((bars_nr + 1), '1d', OHLC_type).iloc[0]).astype('float')
@mrwonderfulness
mrwonderfulness / list.md
Created October 31, 2020 09:19 — forked from ih2502mk/list.md
Quantopian Lectures Saved