• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

PrintTo.OutputTab2 not working in State.SetDefaults NT8 B12

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

    PrintTo.OutputTab2 not working in State.SetDefaults NT8 B12

    The problem occurs for either Strategy or Indicator:

    Say I want all Prints for a strategy to go to Output2.

    If I follow the example code for PrintTo
    Code:
    if (State == State.SetDefaults)
      {
        Name = "Sample PrintTo Indicator #2";
        Description = "@Used to Print updates to Output 2";
     
        //Set this scripts Print() calls to the second output tab
        PrintTo = PrintTo.OutputTab2;
      }
    I find this does not work (subsequent Prints say in State.SetConfigure or OnBarUpdate() actually go to output 1).

    General problem:

    It seems that something in B12 (running between State.SetDefaults and State.SetConfigure) is ignoring a number of settings that might be made in State.SetDefaults (according to current documentation) and setting them to what it thinks should be the default values.

    An example I pointed out previously was ConnectionLossHandling.KeepRunning.

    I suspect there might be a long list, so I am not planning on reporting any more of these.

    #2
    Hello DaveE,

    I attempted to reproduce this behavior but I was not able.

    Are you able to reproduce using the attached script?
    Attached Files
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      Oddly after restarting NT I am no longer able to reproduce this problem.
      Also I notice that I am no longer able to reproduce the problem previously reported in post 3 here
      http://ninjatrader.com/support/forum...ad.php?t=87409
      So it looks like a problem that only starts after some sequence of events I dont have time to find out (maybe after running Strategy Analyzer Optimizer or something else).
      I'm just going to put all these settings in State.SetConfigure just in case the problem re-occurs.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by mohdhm, Today, 04:37 PM
      1 response
      17 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by trader14, Yesterday, 08:23 PM
      1 response
      11 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by bigsurftrader, 02-24-2017, 12:23 AM
      4 responses
      1,162 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by svadukia, Yesterday, 01:56 AM
      2 responses
      25 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by quantrob, Today, 10:24 AM
      1 response
      7 views
      0 likes
      Last Post bltdavid  
      Working...
      X