This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import json | |
| import os | |
| import time | |
| import webbrowser | |
| import sys | |
| import re | |
| def handleWindows(extra_seconds): | |
| print("OS : Windows") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| " TODO: split up config into multiple files | |
| " source $HOME/.config/nvim/vim-plug/plugins.vim | |
| " source $HOME/.config/nvim/<category>/<sub-category-filename>.vim | |
| " source $HOME/.config/nvim/<plug-config>/<plugin-name>.vim | |
| set nocompatible | |
| filetype off | |
| if empty(glob('~/.vim/autoload/plug.vim')) | |
| silent !curl -fLo ~/.vim/autoload/plug.vim --create-dirs |