Replies: 3 comments 4 replies
-
I think this is caused 'deliberately' by the behaviour of:https://github.com/robcarver17/pysystemtrade/blob/master/sysdata/config/fill_config_dict_with_defaults.py On balance the business of what is duplicate, excluded or included is probably a private matter. My gut feeling is to replace these with blanks in the defaults.yaml or remove them entirely (need to check this will not cause a problem), and then people need to add them back to their private config. Thoughts? |
Beta Was this translation helpful? Give feedback.
-
I already did this for include/excluded in my repo. (Made them empty dictionaries in defaults.yaml). I didn't have to for bad_markets, because they are lists, and lists appear to be completely replaced if specified in the private config. Dictionaries aren't replaced, more like "merged". This seems like an inconsistency, but I can see the reason for it in the code. It makes some things easier, but it can be surprising if you're not aware of the difference. Edit: Emre describes different behavior for lists than what I remember...it was a while ago, so maybe I'm misremember. Or maybe it's a difference between empty and non-empty lists |
Beta Was this translation helpful? Give feedback.
-
Created an issue. |
Beta Was this translation helpful? Give feedback.
-
Hi Everyone,
I would like to override the following settings in my system config, whereby I deliberately don't want to specify any duplicate instrument, nor would I like to pick the ones from defaults. The same for trading restrictions and bad markets. I do want to override ignore_instruments.
I thought using empty list and dictionary notation would avoid picking defaults for duplicate instruments, trading restrictions and bad markets, but it is still picking. Any tips, other than having at least one item in these lists?
Beta Was this translation helpful? Give feedback.
All reactions