Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Fill type = liberal/default

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

    Fill type = liberal/default

    In backtests and optimizations I would like to simulate a strategy with Fill type = “liberal” for entry orders, and Fill type = “default” for target orders.

    Are there any code samples that would show how this (or something similar) is done, or can you suggest an approach?

    Thanks

    [The above for NT 6.5]

    #2
    Hello anotherTrader,

    You can only set the type once per strategy run. We don't support dynamically changing the type.

    So to do this requires custom coding your own fill type. You can see the existing ones in:
    My Documents\NinjaTrader\bin\custom\type

    Unfortunately we can't advise specific technique for achieving this.
    Ryan M.NinjaTrader Customer Service

    Comment


      #3
      From where within a typical strategy are @LiberalFillType and @DefaultFillType called?
      [I appreciate I may need to do some “extra reading” to get to the point where I have fully got my head around how all this is working… but at least give me some “buzz words” that will get me started on the right track …]
      Thanks.

      Comment


        #4
        Types are defined in the Initialize() method and then used to determine fills. If you take a look at the code from these files, you can see how they're defined.

        You essentially need to combine both files but add additional conditions to distinguish between entries and targets.
        Last edited by NinjaTrader_RyanM1; 12-07-2010, 11:45 AM.
        Ryan M.NinjaTrader Customer Service

        Comment


          #5
          OK, thanks.

          I'll let you know how I get on!

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by samish18, Today, 08:31 AM
          1 response
          1 view
          0 likes
          Last Post NinjaTrader_Clayton  
          Started by Creamers, 09-08-2023, 10:26 AM
          6 responses
          157 views
          0 likes
          Last Post JonyGurt  
          Started by funk10101, Today, 08:14 AM
          1 response
          2 views
          0 likes
          Last Post NinjaTrader_Jesse  
          Started by trilliantrader, Today, 08:16 AM
          2 responses
          6 views
          0 likes
          Last Post trilliantrader  
          Started by bill2023, Yesterday, 08:51 AM
          3 responses
          22 views
          0 likes
          Last Post bltdavid  
          Working...
          X