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
package main | |
import ( | |
"context" | |
"encoding/json" | |
"io/ioutil" | |
"net/http" | |
"github.com/robfig/cron/v3" | |
"golang.org/x/oauth2/google" |