Skip to content

Instantly share code, notes, and snippets.

View iamanvesh's full-sized avatar

Anvesh Arrabochu iamanvesh

View GitHub Profile
@iamanvesh
iamanvesh / build_continuous_data.py
Last active October 7, 2020 07:57
Quick and dirty way to build a continuous contract from monthly contracts that can be used to back-test. Rollover to the new contract at the given expiry hour/minute in your backtest.
import os
import csv
import pandas as pd
from datetime import datetime
months = {
'JAN': 1,
'FEB': 2,
'MAR': 3,
@iamanvesh
iamanvesh / vimrc
Created October 11, 2014 13:52
My vimrc
" Indent automatically depending on filetype
filetype indent on
set autoindent
" Turn on line numbering. Turn it off with "set nonu"
set number
" Set syntax on
syntax on