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)
to invoke from a bar-type, do something like this:
logs are posted in <my docs>\NinjaTrader7\log and look like this:
note: i haven't tested this in ChartStyles or Indicators or Strategies. should work just fine, but my primary use (for now) is debugging a bar type, which is the point of this thread.
cheers,
-e
Can you help answer these questions from other members on NexusFi?
No wiki yet. I've been offline for a while. will post what i've been using so far. I did get the debugging output file to work. will post it here later today, for a quick post, then post wiki later. Thanks for the suggestion @eman.
I know this is a really old thread but I came across it about eight months ago when I started developing a custom bars type. Just now, after messing with streamwriters all this time I figured it out. Hopefully this helps someone who's developing down in the guts of NinjaTrader where you're not supposed to be.
using NinjaTrader.code;
public void Print(string output)
{
OutputEventArgs.ProcessEventArgs(new OutputEventArgs(output + "\r\n"));
}
Then from anywhere in that namespace you can do the same thing you've always done in Indicators or Strategies.
Print ("This is my value: " + _myValue);
The Ninja Output window will now happily give you the output you want.