Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Fill Types

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

    Fill Types

    Hi All,

    I have read that Fill Types are not documented.
    However, could you tell me if it is possible to Debug.Print the values for series in Types?

    I have saved my own Fill Type and have added:

    > using System.Diagnostics;

    in order to try and use Debug.Print, as I would like to check the values returned by NextLow, NextHigh etc.

    Will Debug.Print work, and if so should print to where?
    Also, are there alternatives to NextLow, NextHigh that can access other bar data/series?
    Could I even instantiate my own bar array to access Close[0] etc on an instrument?

    many thanks for any guidance you can offer here

    regards

    #2
    Hello Pourleau,

    Custom fill types are not supported by NinjaTrader so I cannot assist with this. This thread will remain open to any community members that would like to contribute.

    But as a tip, the NinjaTrader Print() command is available if you include the NinjaTrader.Indicator using declaration. (The indicator and strategy namespaces are included with the @DefaultFillType.cs file)
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      Chelsea,

      Many thanks - appreciate the tip given this is not a supported area.

      However while I have:

      using NinjaTrader.Indicator;
      using NinjaTrader.Strategy;

      in the Fill Type using declarations, I get the following error when trying to use Print():

      "The name 'Print' does not exist in the current context."

      Appreciate if you can indicate any way to get the Print() command to work with Fill Type?

      many thanks

      Comment


        #4
        Hi Pourleau,

        I was incorrect about that.

        Print is within an inherited class that cannot be added to your fill type which is inheriting from another class.

        At this point I think using the NinjaTrader Print() method is not possible from a fill type.

        You will need to use another method to debug such as showing a message box, or writing to a file.
        Chelsea B.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Geovanny Suaza, 02-11-2026, 06:32 PM
        0 responses
        633 views
        0 likes
        Last Post Geovanny Suaza  
        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
        0 responses
        364 views
        1 like
        Last Post Geovanny Suaza  
        Started by Mindset, 02-09-2026, 11:44 AM
        0 responses
        105 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by Geovanny Suaza, 02-02-2026, 12:30 PM
        0 responses
        567 views
        1 like
        Last Post Geovanny Suaza  
        Started by RFrosty, 01-28-2026, 06:49 PM
        0 responses
        568 views
        1 like
        Last Post RFrosty
        by RFrosty
         
        Working...
        X