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 gnocchi, Today, 11:56 AM
        1 response
        2 views
        0 likes
        Last Post NinjaTrader_Zachary  
        Started by FAQtrader, Today, 12:00 PM
        0 responses
        4 views
        0 likes
        Last Post FAQtrader  
        Started by geddyisodin, Today, 05:20 AM
        5 responses
        32 views
        0 likes
        Last Post NinjaTrader_Gaby  
        Started by bmartz, Today, 09:30 AM
        2 responses
        13 views
        0 likes
        Last Post bltdavid  
        Started by f.saeidi, Today, 11:02 AM
        1 response
        5 views
        0 likes
        Last Post NinjaTrader_BrandonH  
        Working...
        X