Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

custom fill type

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

    custom fill type

    When running an optimization - does each strategy instance gets its own dedicated fill engine instance, or is it shared between threads?
    I'm asking, as I'm developing a custom fill algorithm, which has to keep some internal state between calls, and I'm not sure if I can place the variables in the strategy class or the fill class.

    Boaz

    #2
    Boaza,

    I am happy to assist you.

    Strategies are run multi-threaded so each one should have its own state and should be creating objects for their own exclusive use.

    Please let me know if I may assist further.
    Adam P.NinjaTrader Customer Service

    Comment


      #3
      Is the fill instance (i.e. the one which implements the Fill() method) that is derived from FillType (e.g. DefaultFillType which is supplied with NT), unique for every strategy instance, or does the simulator call the same object for different strategy instances?

      Comment


        #4
        boaza,

        I would suspect each creates their own unique object since optimization is a multi-threaded task. Generally in object oriented programming the whole point of having classes like this is so they are created individually when needed. You could always try it out in simulation and see if there are any unsuspected results with a toy example.

        Unfortunately this level of customization isn't supported.

        Please let me know if I may assist further.
        Last edited by NinjaTrader_AdamP; 11-30-2011, 01:00 PM.
        Adam P.NinjaTrader Customer Service

        Comment


          #5
          OK, thanks

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by argusthome, Yesterday, 10:06 AM
          0 responses
          20 views
          0 likes
          Last Post argusthome  
          Started by NabilKhattabi, 03-06-2026, 11:18 AM
          0 responses
          18 views
          0 likes
          Last Post NabilKhattabi  
          Started by Deep42, 03-06-2026, 12:28 AM
          0 responses
          14 views
          0 likes
          Last Post Deep42
          by Deep42
           
          Started by TheRealMorford, 03-05-2026, 06:15 PM
          0 responses
          9 views
          0 likes
          Last Post TheRealMorford  
          Started by Mindset, 02-28-2026, 06:16 AM
          0 responses
          40 views
          0 likes
          Last Post Mindset
          by Mindset
           
          Working...
          X