Object reference not set to an instance of an object
Author: Assenzio
Creation Date: 9/10/2014 7:29 AM
profile picture

Assenzio

#1
I have the piece of code below that always worked fine but I don't know why isn't working anymmore. I am a bit confused about that, hope you can help me finding a solution.

CODE:
Please log in to see this code.



Running the strategy, whatever ticker I put (I am using Bloomberg) in this expression:

Index = GetExternalSymbol("SX5E", true).Close;

I obtained this error (on the instruction above):

Runtime Error:Object reference not set to an instance of an object at WealthLab.Strategies.QuantitativeBehaviour.Execute() etc etc

Can someone explain where I am wrong ?
profile picture

Eugene

#2
It's a very popular error. Amazing but every other poster of our forum has started her/his own thread called "Object reference not set error". (Takes a second to search to prove it: Google link.)

Fortunately, our helpful Knowledge Base is here to suggest solutions for this and other errors - for years:

Errors | Strategy > Object reference not set to an instance of an object

P.S. If that's not a typo, then you have nothing to worry about but AFAIK, indices with leading dot belong to Fidelity WLP and aren't available in WLD:
CODE:
Please log in to see this code.


This website uses cookies to improve your experience. We'll assume you're ok with that, but you can opt-out if you wish (Read more).