Skip to content

Commit

Permalink
Merge pull request #1273 from bug-or-feature/no_risk_overlay
Browse files Browse the repository at this point in the history
removing risk_overlay config from example tests...
  • Loading branch information
robcarver17 authored Oct 19, 2023
2 parents ffd2801 + f688034 commit caf16fa
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions tests/test_examples.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ def my_config(ewmac_8, ewmac_32):
my_config.trading_rules = dict(ewmac8=ewmac_8, ewmac32=ewmac_32)
my_config.instruments = ["US10", "EDOLLAR", "CORN", "SP500"]
my_config.notional_trading_capital = 1000000
my_config.risk_overlay = arg_not_supplied
my_config.exclude_instrument_lists = dict(
ignore_instruments=["MILK"],
trading_restrictions=["BUTTER"],
Expand Down Expand Up @@ -309,7 +308,6 @@ def test_simple_system_config_object(self, data, ewmac_8, ewmac_32):
percentage_vol_target=25.00,
notional_trading_capital=500000,
base_currency="GBP",
risk_overlay=arg_not_supplied,
exclude_instrument_lists=dict(
ignore_instruments=["MILK"],
trading_restrictions=["BUTTER"],
Expand Down Expand Up @@ -379,7 +377,6 @@ def test_simple_system_risk_overlay(self, data, ewmac_8, ewmac_32):
def test_simple_system_config_import(self, data):

my_config = Config("systems.provided.example.simplesystemconfig.yaml")
my_config.risk_overlay = arg_not_supplied
my_config.exclude_instrument_lists = dict(
ignore_instruments=["MILK"],
trading_restrictions=["BUTTER"],
Expand Down Expand Up @@ -418,7 +415,6 @@ def test_prebaked_simple_system(self):
This is the simple system from 'examples.introduction.prebakedsimplesystems'
"""
my_system = simplesystem()
my_system.config.risk_overlay = arg_not_supplied
print(my_system)
print(my_system.portfolio.get_notional_position("EDOLLAR").tail(5))

Expand All @@ -428,7 +424,6 @@ def test_prebaked_from_confg(self):
This is the config system from 'examples.introduction.prebakedsimplesystems'
"""
my_config = Config("systems.provided.example.simplesystemconfig.yaml")
my_config.risk_overlay = arg_not_supplied
my_data = csvFuturesSimData()
my_system = simplesystem(config=my_config, data=my_data)
print(my_system.portfolio.get_notional_position("EDOLLAR").tail(5))
Expand All @@ -440,7 +435,6 @@ def test_prebaked_chapter15(self):
but without graph plotting
"""
system = base_futures_system()
system.config.risk_overlay = arg_not_supplied
print(system.accounts.portfolio().sharpe())

@staticmethod
Expand Down

0 comments on commit caf16fa

Please sign in to comment.