- ago
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?
0
154
3 Replies

Reply

Bookmark

Sort
Cone8
 ( 25.44% )
- ago
#1
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?
0
- ago
#2
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
0
Glitch8
 ( 11.81% )
- ago
#3
We'd be interested in seeing the Strategies and MetaStrategy for troubleshooting, if you could email them to support@wealth-lab.com.

0

Reply

Bookmark

Sort