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

      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 RubenCazorla, Today, 09:07 AM
      1 response
      5 views
      0 likes
      Last Post RubenCazorla  
      Started by Irukandji, Today, 09:34 AM
      0 responses
      3 views
      0 likes
      Last Post Irukandji  
      Started by TraderBCL, Today, 04:38 AM
      3 responses
      25 views
      0 likes
      Last Post NinjaTrader_Jesse  
      Started by WeyldFalcon, 08-07-2020, 06:13 AM
      11 responses
      1,423 views
      0 likes
      Last Post jculp
      by jculp
       
      Started by BarzTrading, Today, 07:25 AM
      2 responses
      29 views
      1 like
      Last Post BarzTrading  
      Working...
      X