WL Team - first of all Best Wishes for 2024 !!
I am creating a MetaStrategy adding existing 2 c# coded strategies - very similar to each other. At first I was getting "Object reference not set to an instance of an object" error when running the new meta with both. Then realized it works well with the 1st strategy alone, but not with the 2nd (whether alone or not). Both strategies run perfectly well as standalone.
Before jumping into details for each strategy - is there any generic reason for this error to come up in metastrategies and any cure for it?
I am creating a MetaStrategy adding existing 2 c# coded strategies - very similar to each other. At first I was getting "Object reference not set to an instance of an object" error when running the new meta with both. Then realized it works well with the 1st strategy alone, but not with the 2nd (whether alone or not). Both strategies run perfectly well as standalone.
Before jumping into details for each strategy - is there any generic reason for this error to come up in metastrategies and any cure for it?
Rename
It's hard to say what that might be, but you can try this (if they're not blocks) -
1. Close the MetaStrategy.
2. Change the namespace of one of the strategies so they're not the same.
3. Save
4. Open / Run the MetaStrategy
Any difference?
1. Close the MetaStrategy.
2. Change the namespace of one of the strategies so they're not the same.
3. Save
4. Open / Run the MetaStrategy
Any difference?
Thank you Cone; no difference from changing namespace to (various) different names.. Just a note of curiosity - the strategy not working in meta, works however under strategy monitor (as well as standalone).
p.s. edit: have tried adding other strategies to the meta and have no problem. so there appears to be some incompatibility with just one strategy; I'll do some comparison work
p.s. edit: have tried adding other strategies to the meta and have no problem. so there appears to be some incompatibility with just one strategy; I'll do some comparison work
We'd be interested in seeing the Strategies and MetaStrategy for troubleshooting, if you could email them to support@wealth-lab.com.
Your Response
Post
Edit Post
Login is required