NinjaTrader Support Forum  

Go Back   NinjaTrader Support Forum > Application Technical Support > Miscellaneous Support > Historical Version 7 Beta Threads > Version 7 Beta General Questions & Bug Reports

Version 7 Beta General Questions & Bug Reports Ask questions here and post bug reports.

 
 
Thread Tools Display Modes
Old 03-31-2010, 09:13 PM   #1
Tight Face
Member
 
Join Date: Apr 2008
Posts: 72
Thanks: 0
Thanked 0 times in 0 posts
Default Strategy not running/No Print() output

After converting all my int volumes to long volumes my code from 6.5 seemed to compile without error (there is not compile complete dialog box anymore correct?)

Anyways, the strategy shows up in the Strategies window to add. But nothing seems to be running. No errors in the log. No print output.

I tried a basic print test, same deal. No print output. Tried removing adding refreshing. Nothing.

PHP Code:
#region Using declarations
using System;
using System.ComponentModel;
using System.Diagnostics;
using System.Drawing;
using System.Drawing.Drawing2D;
using System.Xml.Serialization;
using NinjaTrader.Cbi;
using NinjaTrader.Data;
using NinjaTrader.Indicator;
using NinjaTrader.Gui.Chart;
using NinjaTrader.Strategy;
#endregion

// This namespace holds all strategies and is required. Do not change it.
namespace NinjaTrader.Strategy
{
    
/// <summary>
    /// Enter the description of your strategy here
    /// </summary>
    
[Description("Enter the description of your strategy here")]
    public class 
Test Strategy
    
{
        
#region Variables
        // Wizard generated variables
        
private int myInput0 1// Default setting for MyInput0
        // User defined variables (add any user defined variables below)
        #endregion

        /// <summary>
        /// This method is used to configure the strategy and is called once before any strategy method is called.
        /// </summary>
        
protected override void Initialize()
        {
            
CalculateOnBarClose false;
        }

        
/// <summary>
        /// Called on each bar update event (incoming tick)
        /// </summary>
        
protected override void OnBarUpdate()
        {
            Print(
"Womp");
        }

        
#region Properties
        
[Description("")]
        [
GridCategory("Parameters")]
        public 
int MyInput0
        
{
            
get { return myInput0; }
            
set myInput0 Math.Max(1value); }
        }
        
#endregion
    
}

Tight Face is offline  
Old 03-31-2010, 09:14 PM   #2
Tight Face
Member
 
Join Date: Apr 2008
Posts: 72
Thanks: 0
Thanked 0 times in 0 posts
Default

I'm running from market replay data.
Tight Face is offline  
Old 04-01-2010, 04:35 AM   #3
NinjaTrader_Bertrand
NinjaTrader Customer Service
 
NinjaTrader_Bertrand's Avatar
 
Join Date: Sep 2008
Location: Germany
Posts: 22,569
Thanks: 262
Thanked 1,018 times in 999 posts
Default

Correct, there's only a sound for successfull compile feedback, no box anymore. Is the strategy enabled from the UI as you add it? This is new in NT7 because of it's strategy persistence concepts added.
NinjaTrader_Bertrand is offline  
Old 04-01-2010, 12:58 PM   #4
Tight Face
Member
 
Join Date: Apr 2008
Posts: 72
Thanks: 0
Thanked 0 times in 0 posts
Default

I'm now thinking the (D) next to the strategy meant disabled. It works now. Thanks.
Tight Face is offline  
Old 04-01-2010, 12:59 PM   #5
NinjaTrader_Bertrand
NinjaTrader Customer Service
 
NinjaTrader_Bertrand's Avatar
 
Join Date: Sep 2008
Location: Germany
Posts: 22,569
Thanks: 262
Thanked 1,018 times in 999 posts
Default

Yes, exactly - thanks for reporting back.
NinjaTrader_Bertrand is offline  
Old 04-01-2010, 01:01 PM   #6
Tight Face
Member
 
Join Date: Apr 2008
Posts: 72
Thanks: 0
Thanked 0 times in 0 posts
Default

(D) isn't exactly intuitive for first time users. Do you think it should maybe say (Disabled) instead?

If I saw (disabled), i would have taken a closer look at the strategy properties. In any case this is resolved. Thanks.
Tight Face is offline  
Old 04-01-2010, 01:19 PM   #7
NinjaTrader_Kyle
NinjaTrader Customer Service
 
NinjaTrader_Kyle's Avatar
 
Join Date: Dec 2008
Location: Denver, CO, USA
Posts: 7,434
Thanks: 156
Thanked 262 times in 257 posts
Default

Hi Tight Face,

I will forward your comments on to my development team for further consideration.
NinjaTrader_Kyle is offline  
 

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() to Output Window xewoox General Programming 3 09-04-2010 10:24 PM
Redirect Print output to my logger dimkdimk General Programming 4 01-25-2010 06:22 AM
Print does not create text in Output Window Gwaihir General Programming 4 12-29-2009 04:17 AM
Print Output Window data to named text file Buttermilk General Programming 1 09-17-2009 03:56 PM
Print to Output heech Strategy Development 3 11-15-2008 07:41 PM


All times are GMT -6. The time now is 07:33 PM.