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 CarlTrading, 03-31-2026, 09:41 PM
        1 response
        78 views
        1 like
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 04-01-2026, 02:41 AM
        0 responses
        40 views
        0 likes
        Last Post CarlTrading  
        Started by CaptainJack, 03-31-2026, 11:44 PM
        0 responses
        63 views
        2 likes
        Last Post CaptainJack  
        Started by CarlTrading, 03-30-2026, 11:51 AM
        0 responses
        63 views
        0 likes
        Last Post CarlTrading  
        Started by CarlTrading, 03-30-2026, 11:48 AM
        0 responses
        54 views
        0 likes
        Last Post CarlTrading  
        Working...
        X