Skip to content

Instantly share code, notes, and snippets.

@drSeeS
drSeeS / WilliamPOP.py
Created January 18, 2017 16:45
Probabilty of Profit and WilliamsR
import pandas as pd
import numpy as np
import talib
from scipy.stats import ks_2samp
try:
import pandas_datareader.data as web
except ImportError:
@drSeeS
drSeeS / rollingFuturesContract
Last active September 12, 2024 10:45
Class for constructing rolling futures contracts (at this time only using panama backadj. method on fixed calender days before maturity)
import datetime
import pandas as pd
from pandas.tseries.offsets import Day, BDay, DateOffset
import numpy as np
import os
import pickle
class rollingFuturesContract: