Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

Slippage not working when using Strategies with an intrabar granularity

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

    Slippage not working when using Strategies with an intrabar granularity

    I am using the strategy found in https://ninjatrader.com/support/help...ipt_strate.htm which shows you how to enter orders using a secondary timeframe in a more granular manner.

    When I use the strategy's slippage parameter it does not work. From my testing using the script that Ninjatrader has provided on the webpage, if I change the
    EnterLong(1, 1, "Long: 1min");
    statment to
    EnterLong(0, 1, "Long: 1min");
    then the slippage logics works. It looks like the slippage logic only works when submitting order using the primary data series. Is there a way to overcome this limitation?

    #2
    Is the solution to use another type of order in which I apply the slippage parameter myself?

    Comment


      #3
      Hello GARZONJ,

      What series is the secondary series? Slippage can be applied but will not always be applied if it would not work into the historical fill algorithm for that use case. You can see this happen when changing from a larger secondary series to a smaller one, the larger series we may see slippage where the smaller we may not.

      I tried this test on my end with a 5 minute secondary and can see slippage being applied, using a smaller series like 25 tick there is no longer slippage for the test period.

      I look forward to being of further assistance.
      JesseNinjaTrader Customer Service

      Comment


        #4
        Got it!

        Based on the documentation found in this link https://ninjatrader.com/support/help...fill_logic.htm , the algorithm to fill historical orders NEEDS the second data series to be "large" enough to execute algorithm's logic. I was using 1 tick as the secondary series time frame. Due to its granularity, apparently the algorithm cannot add slippage. Once I change it to a "larger" period/timeframe, the slippage functionality began working.

        Thank you for your observation.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by GussJ, 03-04-2020, 03:11 PM
        11 responses
        3,229 views
        0 likes
        Last Post xiinteractive  
        Started by andrewtrades, Today, 04:57 PM
        1 response
        14 views
        0 likes
        Last Post NinjaTrader_Manfred  
        Started by chbruno, Today, 04:10 PM
        0 responses
        7 views
        0 likes
        Last Post chbruno
        by chbruno
         
        Started by josh18955, 03-25-2023, 11:16 AM
        6 responses
        441 views
        0 likes
        Last Post Delerium  
        Started by FAQtrader, Today, 03:35 PM
        0 responses
        12 views
        0 likes
        Last Post FAQtrader  
        Working...
        X