Skip to content

Instantly share code, notes, and snippets.

View mikesetzer's full-sized avatar

Mike Setzer mikesetzer

View GitHub Profile
@mikesetzer
mikesetzer / hold-tlt-version.py
Created May 18, 2021 13:40 — forked from a-r-d/hold-tlt-version.py
QuantConnect - simple MACD strategy against SPY, 50/150 day cross, long and short, leverage is none
import numpy as np
### <summary>
### Basic template algorithm simply initializes the date range and cash. This is a skeleton
### framework you can use for designing an algorithm.
### </summary>
class BasicTemplateAlgorithm(QCAlgorithm):
'''Basic template algorithm simply initializes the date range and cash'''
def Initialize(self):