Question about 'Strategy weights' and 'forecast weights' in yaml file #1548
Replies: 1 comment 1 reply
-
Yes (but no). Trend and carry are not strategies in this context. An example of a strategy would be "rob_system". Strategy and system are used more or less interchangeably in pysystemtrade. Trend and carry are categories of forecast. A strategy/system may contain any number and variety of forecasts. rob_system contains both trend and carry forecasts.
That is above the level of any single strategy, so thus not provided as part of a strategy. You need to define that in your private config. For example:
Most users of pysystemtrade will only be running one system/strategy, so the strategy allocation will just be 100% to that strategy. Running multiple strategies is a more advanced use-case.
You'll need to define both somewhere, but I would advise using your own config files to override the defaults, rather than editing the defaults directly. Either will work though.
This question isn't really answerable. If you have questions about why specific parameters are different, someone might be able to answer that (or maybe only Rob knows).
Also unanswerable. Depends on what you want to do. If you aren't sure, the config from rob_system is probably a good place to start. But you can't just replace defaults.yaml. You would either need to edit it, or preferably create your own config that will override the specific parameters that you want to change. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi everyone,
I’ve recently been reading the Strategy capital section in Rob’s docs (production part), as well as the corresponding script files
sysproduction/update_strategy_capital.py
andsysproduction/strategy_code/strategy_allocation.py
.From my understanding,
update_strategy_capital.py
calls the function specified by 'strategy_capital_allocation' indefault.yaml
, which in the default case issysproduction.strategy_code.strategy_allocation.weighted_strategy_allocation
. This function then allocates capital to each strategy based on the 'strategy_weights' defined indefault.yaml
(e.g., Trend 60%, Carry 40%).If my understanding is correct, I have the following questions:
systems/provided/rob_system/config.yaml
, I couldn’t find the 'strategy_weights' field or 'strategy_capital_allocation'. However, each instrument does have its own 'forecast_weights'. This confuses me — what’s the difference between strategy_weights and forecast_weights?default.yaml
?config.yaml
differ so much from the dictionary structure insysdata/config/defaults.yaml
? If I want to use PST in a production environment, how should I configure my default.yaml?I’d appreciate any guidance you could provide. Thanks in advance!
Beta Was this translation helpful? Give feedback.
All reactions