NinjaTrader Debugging - NinjaTrader Programming | futures io social day trading
futures io futures trading


NinjaTrader Debugging
Updated: Views / Replies:748 / 12
Created: by abdunbar Attachments:1

Welcome to futures io.

(If you already have an account, login at the top of the page)

futures io is the largest futures trading community on the planet, with over 100,000 members. At futures io, our goal has always been and always will be to create a friendly, positive, forward-thinking community where members can openly share and discuss everything the world of trading has to offer. The community is one of the friendliest you will find on any subject, with members going out of their way to help others. Some of the primary differences between futures io and other trading sites revolve around the standards of our community. Those standards include a code of conduct for our members, as well as extremely high standards that govern which partners we do business with, and which products or services we recommend to our members.

At futures io, our focus is on quality education. No hype, gimmicks, or secret sauce. The truth is: trading is hard. To succeed, you need to surround yourself with the right support system, educational content, and trading mentors Ė all of which you can find on futures io, utilizing our social trading environment.

With futures io, you can find honest trading reviews on brokers, trading rooms, indicator packages, trading strategies, and much more. Our trading review process is highly moderated to ensure that only genuine users are allowed, so you donít need to worry about fake reviews.

We are fundamentally different than most other trading sites:
  • We are here to help. Just let us know what you need.
  • We work extremely hard to keep things positive in our community.
  • We do not tolerate rude behavior, trolling, or vendors advertising in posts.
  • We firmly believe in and encourage sharing. The holy grail is within you, we can help you find it.
  • We expect our members to participate and become a part of the community. Help yourself by helping others.

You'll need to register in order to view the content of the threads and start contributing to our community.  It's free and simple.

-- Big Mike, Site Administrator

Reply
 1  
 
Thread Tools Search this Thread
 

NinjaTrader Debugging

  #1 (permalink)
Elite Member
El Paso, Texas
 
Futures Experience: Intermediate
Platform: Ninja
Favorite Futures: Euro
 
Posts: 25 since Jan 2011
Thanks: 28 given, 22 received

NinjaTrader Debugging

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.

Reply With Quote
The following 3 users say Thank You to abdunbar for this post:
 
  #2 (permalink)
Quick Summary
Quick Summary Post

Quick Summary is created and edited by users like you... Add FAQ's, Links and other Relevant Information by clicking the edit button in the lower right hand corner of this message.

 
  #3 (permalink)
Elite Member
Berlin, Europe
 
Futures Experience: Advanced
Platform: NinjaTrader, MultiCharts
Broker/Data: Interactive Brokers
Favorite Futures: Keyboard
 
Fat Tails's Avatar
 
Posts: 9,693 since Mar 2010
Thanks: 4,228 given, 25,796 received
Forum Reputation: Legendary



abdunbar View Post
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.

Reply With Quote
The following 2 users say Thank You to Fat Tails for this post:
 
  #4 (permalink)
Elite Member
Johannesburg South Africa
 
Futures Experience: Intermediate
Platform: NJ7
Favorite Futures: ES
 
Posts: 1 since Jul 2012
Thanks: 0 given, 0 received

NJ Debugging in VS not working due to 'symbols not loaded' issue

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.

Hope this helps someone.
Matt

Reply With Quote
 
  #5 (permalink)
Elite Member
Gits (Hooglede) Belgium
 
Futures Experience: Master
Platform: NinjaTrader, Proprietary,
Broker/Data: Ninjabrokerage/IQfeed + Synthetic datafeed
Favorite Futures: 6A, 6B, 6C, 6E, 6J, 6S, ES, NQ, YM, AEX, CL, NG, ZB, ZN, ZC, ZS, GC
 
rleplae's Avatar
 
Posts: 2,751 since Sep 2013
Thanks: 2,061 given, 4,520 received
Forum Reputation: Legendary

I was also never able to activate debugging in VS for NT indicators
I gave up on it

Reply With Quote
 
  #6 (permalink)
Elite Member
Darwin
 
Futures Experience: Advanced
Platform: Ninjatrader
 
Posts: 52 since Sep 2009
Thanks: 54 given, 26 received

NinjaTrader 8 debugging help needed

Trying to debug my NT8....however a new error has come up that I can't figure out. I am hoping the collective intellegence here can help me.

Thanks in advance.
Please register on futures.io to view futures trading content such as post attachment(s), image(s), and screenshot(s).

Reply With Quote
 
  #7 (permalink)
Elite Member
Gits (Hooglede) Belgium
 
Futures Experience: Master
Platform: NinjaTrader, Proprietary,
Broker/Data: Ninjabrokerage/IQfeed + Synthetic datafeed
Favorite Futures: 6A, 6B, 6C, 6E, 6J, 6S, ES, NQ, YM, AEX, CL, NG, ZB, ZN, ZC, ZS, GC
 
rleplae's Avatar
 
Posts: 2,751 since Sep 2013
Thanks: 2,061 given, 4,520 received
Forum Reputation: Legendary


usdivers View Post
Trying to debug my NT8....however a new error has come up that I can't figure out. I am hoping the collective intellegence here can help me.

Thanks in advance.
Please register on futures.io to view futures trading content such as post attachment(s), image(s), and screenshot(s).

Sounds like a conflict..

Try to undo the last installed package, see if the problem goes away..

Reply With Quote
 
  #8 (permalink)
Elite Member
Darwin
 
Futures Experience: Advanced
Platform: Ninjatrader
 
Posts: 52 since Sep 2009
Thanks: 54 given, 26 received


rleplae View Post
Sounds like a conflict..

Try to undo the last installed package, see if the problem goes away..

That's what I thought as well, I can't remember what the last installed package was....is there a way for me to figure this out?

Reply With Quote
 
  #9 (permalink)
Elite Member
Gits (Hooglede) Belgium
 
Futures Experience: Master
Platform: NinjaTrader, Proprietary,
Broker/Data: Ninjabrokerage/IQfeed + Synthetic datafeed
Favorite Futures: 6A, 6B, 6C, 6E, 6J, 6S, ES, NQ, YM, AEX, CL, NG, ZB, ZN, ZC, ZS, GC
 
rleplae's Avatar
 
Posts: 2,751 since Sep 2013
Thanks: 2,061 given, 4,520 received
Forum Reputation: Legendary

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

Reply With Quote
The following user says Thank You to rleplae for this post:
 
  #10 (permalink)
Elite Member
Darwin
 
Futures Experience: Advanced
Platform: Ninjatrader
 
Posts: 52 since Sep 2009
Thanks: 54 given, 26 received



rleplae View Post
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

NT support figured it out....all I had to do was boot up references....and somehow it fixed itself.

Reply With Quote

Reply



futures io > > > > > NinjaTrader Debugging

Thread Tools Search this Thread
Search this Thread:

Advanced Search



Upcoming Webinars and Events (4:30PM ET unless noted)

July Journal Challenge - $500 in Amazon Gift Cards!

July

Battlestations: $750 in prizes - Show us your trading desk!

August

TBA: FuturesTrader71 w/Morad Askar

Elite only
     

Similar Threads
Thread Thread Starter Forum Replies Last Post
AutoHotKey scripts for editing/debugging NT scripts in Visual Studio swinger NinjaTrader Programming 5 August 10th, 2016 12:59 PM
XavMTF Debugging and Optimization Thread - Multi Time Frame Indicator Xav1029 The Elite Circle 47 June 20th, 2015 06:55 AM
Debugging a BarsType help zacharydw00 NinjaTrader Programming 13 November 20th, 2014 01:51 AM
Visual Studio 2012 Express Debugging aguison NinjaTrader Programming 5 July 1st, 2013 12:56 AM
need some help with debugging. kaywai NinjaTrader Programming 1 January 18th, 2010 04:40 AM


All times are GMT -4. The time now is 09:38 AM. (this page content is cached, log in for real-time version)

Copyright © 2018 by futures io, s.a., Av Ricardo J. Alfaro, Century Tower, Panama, +507 833-9432, info@futures.io
All information is for educational use only and is not investment advice.
There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
no new posts
Page generated 2018-07-21 in 0.09 seconds with 14 queries on phoenix