Welcome to NexusFi: the best trading community on the planet, with over 150,000 members Sign Up Now for Free
Genuine reviews from real traders, not fake reviews from stealth vendors
Quality education from leading professional traders
We are a friendly, helpful, and positive community
We do not tolerate rude behavior, trolling, or vendors advertising in posts
We are here to help, just let us know what you need
You'll need to register in order to view the content of the threads and start contributing to our community. It's free for basic access, or support us by becoming an Elite Member -- see if you qualify for a discount below.
-- Big Mike, Site Administrator
(If you already have an account, login at the top of the page)
I discovered this by accident. I have wished to be able to set watches for variables in order to isolate errors. Without getting into using Visual Studio, the only choice is the print statement and the output window. In the past, I had always loaded the indicator or strategy on a chart with the chart at the most recent time, all the way to the right and the output window would fill with a bunch of print statements that I would have to go back and analyze. But...
If I load the script with the chart scrolled all the way back to the beginning of my data, the script only runs to the current right edge of the chart. Then I can step through the chart bar by bar and watch the Print statement give me the values of my variables as the bars print.
If everyone else knew this already sorry. But it made my day.
Your finding is correct. You can scroll back your chart, look for special cases to debug and then refresh the chart via F5. That way you can directly deal with any problems found on the chart.
However, you need to disconnect from any datafeed. Otherwise OnBarUpdate() will run until the end of the (hidden section) of the chart.
Hi guys,
I spent countless hours using the outbox, when I shall have started using VS earlier.
For some things coding inside NJ is faster and easier, especially if you know exactly what to code.
When doing this for more complex multi time frame and interconnected indicators and strategies, the call sequence and indexing etc. can get real messy.
So using VS is a smart idea and will save you lots of nerves, time & money.
My VS debugging was not working for long time despite following all steps. NJ support was struggling to figure out the reason for this problem, too.
Error message: no symbols loaded (in VS)
Reason: Only after a direct change on a script in NJ, the debugging symbol information are being loaded onto NJ.
Now this may seem logical, but is still kind of an odd behaviour when you try to set up VS for debugging or start from a new NJ start.
What is worrying a bit more, is that it says something about ninjatrader core also
maybe open a support ticket ? the NT folks are in general very helpful and reactive
although they may ask you to do a clean install and then reinstall all the indicators.
How complex is your setup ?
Did you buy a lot of third party stuff ?
the infralution product, is generic and maybe just the .net encryptor or the licensing
part, it need to dig deeper to see if NT is using it