Skip to content

Instantly share code, notes, and snippets.

"""
Copyright (C) 2018 Interactive Brokers LLC. All rights reserved. This code is subject to the terms
and conditions of the IB API Non-Commercial License or the IB API Commercial License, as applicable.
"""
import sys
from ibapi.contract import *
@chuckmelanson
chuckmelanson / trend_following_1.ipynb
Created July 18, 2022 17:10 — forked from AnthonyFJGarner/trend_following_1.ipynb
A Simple Trend Following System in Python
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
# MOMENTUM
data['ADX'] = ta.ADX(data.High.values, data.Low.values,data.Close.values)
data['ADXR'] = ta.ADXR(data.High.values, data.Low.values,data.Close.values)
data['APO'] = ta.APO(data.Close.values)
data['AROONdown'],data['AROONup'] = ta.AROON(data.High.values, data.Low.values)
data['AROONdmu'] = data['AROONdown'] - data['AROONup']
data['AROONOSC'] = ta.AROONOSC(data.High.values, data.Low.values)
data['BOP'] = ta.BOP(data.Open.values,data.High.values, data.Low.values,data.Close.values)
data['CCI'] = ta.CCI(data.High.values, data.Low.values,data.Close.values)
data['CMO'] = ta.CMO(data.Close.values)
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@chuckmelanson
chuckmelanson / PumpTheDump.ipynb
Created July 18, 2022 13:32 — forked from AnthonyFJGarner/PumpTheDump.ipynb
Quantconnect code for shorting pumped Penny Stocks
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.