I'm working to convert my code from daily to Weekly. It compiles OK but has a run message.
"Runetime error: Object reference not set to an instance of an object. at WealthLab.Strategies.MyStrategy().Execute()
Size:
Color:
Having encountered an error message or an issue, please always check out these pages first:
1.
Known Errors2.
Open IssuesIn particular, this error message is too general and does not indicate much by itself. At the bottom of this page you'll find a troubleshooting procedure to get it fixed quickly:
Known Errors | Strategy >
Object reference not set to an instance of an object
Size:
Color:
I am running this code on symbol CTL
CODE:
Please log in to see this code.
I get "Object reference not set to an instance of an object"
When I run this code say on ROKU, it works fine. Then,
I look at C:\Users\k\AppData\Roaming\Fidelity Investments\WealthLabPro\1.0.0.0\Data\FidelityWSODFundamentalProvider\C
and I see CTL.WLF what should I check next ?
Size:
Color:
This code badly peeks into the future and must be fixed:
CODE:
Please log in to see this code.
Having encountered an error message or an issue, please always check out these pages
before reporting it:
1.
Known Errors2.
Open IssuesIn particular, here's a starting point for your own troubleshooting:
Known Errors >
(scroll down to) "Object reference not set to an instance of an object"
Size:
Color:
hmm, somehow the symbol got data from 1980 and it is like a line....
open, high, low, close =0,0.34,0.35,0.35. If I get rid of these strange data, it works fine.
Size:
Color:
Like this in the screen shot, it is coming from yahoo finance after adjusting for dividend I suppose
Size:
Color:
Size:
Color:
Checking for null fixed it, I think Fidelity only provides like 5 yrs or 10 yrs of fundamental data
CODE:
Please log in to see this code.
Size:
Color:
"Error processing symbol SPG Object reference not set to an instance of an object."
This error together with the same message for several other symbols has began to appear. The symbol is valid.
The code being executed is:
CODE:
Please log in to see this code.
Is there a way to isolate which variable is null?
Size:
Color:
Have you followed suggestion in the Wiki? Please see post #2 above.
If so, what steps you've taken and what are the results (step by step)?
Size:
Color: