Replies: 2 comments 14 replies
-
It's quite hard to know why you're getting a string of zeros, do you have the entire script you ran so I can just paste it in and try and replicate the error? Having said all that, you need: Note no () after the percent -it's a property, not a method of the class. |
Beta Was this translation helpful? Give feedback.
-
Rob upgraded to latest 3121554
looking through the commits around 244a83a, there appear to be shifts from : Is that about right ? if I dig into sysquant I should find the references ? |
Beta Was this translation helpful? Give feedback.
-
Hello
I am trying to run the dynamic backtest shown on Rob's blog : https://qoppac.blogspot.com/2021/10/mr-greedy-and-tale-of-minimum-tracking.html#comment-form
From the comments: https://gist.github.com/robcarver17/11ec3a6c4370aa8e10c895a483420650
a few things made a few modifications due to errors in finding "imports"
Original code:
from systems.forecasting import Rules from systems.basesystem import System from systems.forecast_combine import ForecastCombine from systems.forecast_scale_cap import ForecastScaleCap from systems.provided.dynamic_small_system_optimise.portfolio_weights import portfolioWeightsStage from systems.provided.dynamic_small_system_optimise.optimised_positions import optimisedPositions from systems.provided.dynamic_small_system_optimise.accounts import accountForOptimisedStage from systems.provided.dynamic_small_system_optimise.risk import Risk from systems.rawdata import RawData from systems.positionsizing import PositionSizing from systems.portfolio import Portfolios
My modifications:
from systems.forecasting import Rules from systems.basesystem import System from systems.forecast_combine import ForecastCombine from systems.forecast_scale_cap import ForecastScaleCap from systems.provided.dynamic_small_system_optimise.portfolio_weights_stage import portfolioWeightsStage from systems.provided.dynamic_small_system_optimise.optimised_positions_stage import optimisedPositions from systems.provided.dynamic_small_system_optimise.accounts_stage import accountForOptimisedStage from systems.provided.dynamic_small_system_optimise.risk import Risk from systems.rawdata import RawData from systems.positionsizing import PositionSizing from systems.portfolio import Portfolios from sysdata.sim.csv_futures_sim_data import csvFuturesSimData # to run with csv data
Also added the use csv data.
added this line at the end of the script.
system.accounts.optimised_portfolio()
Runs all is fine, but get no output
have added the following lines
print(system.accounts.optimised_portfolio())
print(system.accounts.optimised_portfolio().percent().stats())
to get this after a the processing 👍
what have I missed this time?
Beta Was this translation helpful? Give feedback.
All reactions