Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Slippage

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

    Slippage

    Hi,

    The slippages are not counted on backtesting/optimization.
    I included the slippage as shown below, but the Startegy Analyzer does not count it. Why?



    Code:
     
    protected override void Initialize()
    {
    CalculateOnBarClose = true;
    { 
    Slippage = 2 ; 
    }
    }

    #2
    dowhk,

    You cannot just add those extra { } brackets around Slippage. Please remove them and try again.
    Josh P.NinjaTrader Customer Service

    Comment


      #3
      Originally posted by NinjaTrader_Josh View Post
      dowhk,

      You cannot just add those extra { } brackets around Slippage. Please remove them and try again.

      Thank you, Josh.

      I removed the brackets, but I don't see any difference.
      As shown below, the Cum.profit does not count the slippage of 2 ticks.
      Last edited by dowhk; 02-19-2010, 07:35 AM.

      Comment


        #4
        Have you tried comparing to results with slippage set to 0?

        I couldn't reproduce this here with our SampleMACrossOver, worked as expected, either via hardcoding this in our setting it in the UI directly.

        Is the hardcoded value appearing as expected in the UI settings when you attempt to backtest the strategy in the Strategy Analyzer?
        BertrandNinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by GussJ, 03-04-2020, 03:11 PM
        16 responses
        3,281 views
        0 likes
        Last Post Leafcutter  
        Started by WHICKED, Today, 12:45 PM
        2 responses
        19 views
        0 likes
        Last Post WHICKED
        by WHICKED
         
        Started by Tim-c, Today, 02:10 PM
        1 response
        9 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by Taddypole, Today, 02:47 PM
        0 responses
        5 views
        0 likes
        Last Post Taddypole  
        Started by chbruno, 04-24-2024, 04:10 PM
        4 responses
        53 views
        0 likes
        Last Post chbruno
        by chbruno
         
        Working...
        X