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


NinjaTrader Debugging
Updated: Views / Replies:417 / 4
Created: by abdunbar Attachments:0

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 90,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
 
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,653 since Mar 2010
Thanks: 4,226 given, 25,602 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
Omer עומר / Israel י
 
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,504 since Sep 2013
Thanks: 1,706 given, 3,715 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

Reply



futures io > > > > > NinjaTrader Debugging

Thread Tools Search this Thread
Search this Thread:

Advanced Search



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

Jigsaw Trading: TBA

Elite only

FuturesTrader71: TBA

Elite only

NinjaTrader: TBA

Jan 18

RandBots: TBA

Jan 23

GFF Brokers & CME Group: Futures & Bitcoin

Elite only

Adam Grimes: TBA

Elite only

Ran Aroussi: TBA

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 01:59 PM
XavMTF Debugging and Optimization Thread - Multi Time Frame Indicator Xav1029 The Elite Circle 47 June 20th, 2015 07:55 AM
Debugging a BarsType help zacharydw00 NinjaTrader Programming 13 November 20th, 2014 02:51 AM
Visual Studio 2012 Express Debugging aguison NinjaTrader Programming 5 July 1st, 2013 01:56 AM
need some help with debugging. kaywai NinjaTrader Programming 1 January 18th, 2010 05:40 AM


All times are GMT -4. The time now is 06:28 AM.

Copyright © 2017 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 2017-12-17 in 0.10 seconds with 19 queries on phoenix via your IP 54.82.81.154