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 Barry Milan, Today, 10:35 PM
      1 response
      8 views
      0 likes
      Last Post NinjaTrader_Manfred  
      Started by WeyldFalcon, 12-10-2020, 06:48 PM
      14 responses
      1,428 views
      0 likes
      Last Post Handclap0241  
      Started by DJ888, Yesterday, 06:09 PM
      2 responses
      9 views
      0 likes
      Last Post DJ888
      by DJ888
       
      Started by jeronymite, 04-12-2024, 04:26 PM
      3 responses
      40 views
      0 likes
      Last Post jeronymite  
      Started by bill2023, Today, 08:51 AM
      2 responses
      16 views
      0 likes
      Last Post bill2023  
      Working...
      X