NinjaTrader Support Forum  
X

Attention!

This website will be down for maintenance from Friday May 24th at 6PM MDT until Saturday May 25th at 11AM MDT. We apologize for the inconvenience. If you need assistance during this time, please email sales@ninjatrader.com


Go Back   NinjaTrader Support Forum > NinjaScript Development Support > Strategy Development

Strategy Development Support for the development of custom automated trading strategies using NinjaScript.

Reply
 
Thread Tools Display Modes
Old 11-15-2008, 11:51 AM   #1
heech
Senior Member
 
Join Date: Nov 2008
Posts: 576
Thanks: 0
Thanked 1 time in 1 post
Default Print to Output

I feel like such a newbie... which is okay, because that's what I am.

I'm not able to make print -> output work correctly. I've setup a basic strategy that does:

protected override void Initialize()
{
...
Print("Initializing...");
}

I open up the output window. I then open up the Strategy Analyzer, and run a back test on a symbol. The strategy seems to run (based on the trades shown), but the output window is empty.

What am I missing?
heech is offline  
Reply With Quote
Old 11-15-2008, 02:23 PM   #2
NinjaTrader_Ray
Administrator
 
NinjaTrader_Ray's Avatar
 
Join Date: Nov 2004
Location: Denver, CO, USA
Posts: 11,163
Thanks: 6
Thanked 45 times in 32 posts
Default

Are you sure you are running the correct strategy? Have you tried adding a Print() statement in OnBarUpdate()?
NinjaTrader_Ray is offline  
Reply With Quote
Old 11-15-2008, 02:55 PM   #3
heech
Senior Member
 
Join Date: Nov 2008
Posts: 576
Thanks: 0
Thanked 1 time in 1 post
Default

Ray,

I'm almost embarassed to admit this... but I will anyways, maybe it'll help someone else.

I actually didn't realize I had to manually re-compile the strategy. Sorry, minor idiocy.
heech is offline  
Reply With Quote
Old 11-15-2008, 07:41 PM   #4
NinjaTrader_Ray
Administrator
 
NinjaTrader_Ray's Avatar
 
Join Date: Nov 2004
Location: Denver, CO, USA
Posts: 11,163
Thanks: 6
Thanked 45 times in 32 posts
Default

Thanks for letting us know.
NinjaTrader_Ray is offline  
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Print() help frogzillafx Indicator Development 5 10-21-2008 10:26 AM
Print() syntax stefy General Programming 8 10-08-2008 06:22 PM
Print indicator value rd_falcon Strategy Development 2 09-26-2008 09:28 AM
Print() not working tradefaz General Programming 2 08-28-2008 12:42 AM
Print() WDieter General Programming 2 05-23-2008 10:55 AM


All times are GMT -6. The time now is 06:36 PM.