Skip to content

Instantly share code, notes, and snippets.

@robcarver17
Created November 23, 2018 16:09
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save robcarver17/4753bf554dfd2897e224169afc67b3d9 to your computer and use it in GitHub Desktop.
Save robcarver17/4753bf554dfd2897e224169afc67b3d9 to your computer and use it in GitHub Desktop.
from systems.provided.futures_chapter15.basesystem import *
sys = futures_system()
config = sys.config
del(config.instrument_weights) # ensures all instruments are used equally weighted
config.forecast_weights=dict(ewmac16_64=0.333, ewmac32_128=0.333, ewmac64_256=0.3333)
config.use_forecast_div_mult_estimates=True
config.use_instrument_div_mult_estimates=True
config.use_forecast_scale_estimates=False
system = futures_system(config=config)
acc = system.accounts.portfolio()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment