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

Stop Loss work differently in Backtest and Real Time simulator

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

    Stop Loss work differently in Backtest and Real Time simulator

    Hi

    I use ATR as stop loss. In the case of GBPCHF, 1 ATR(14) amounts to about 28 pips in a normal day.
    When I backtest, the Stop Loss kicks off sometimes, but when I use the Real Time simulator to paper trade, I almost always get stopped out by my stop loss. If the day after I run the backtest, often I don't.
    I guess it's due to the fact that the Real Time simulator uses the Bid/Ask prices (which is already 10 pips with Gain!), so a small movement of 15 pips + spread can already kick in the stop loss.
    Am I correct or there is another plausible reason for this to happen?

    If this is the reason, how can I amend it practically? When I backtest the model it's very good, but when I use the simulator many times the positions are stopped out before they start to be profitable.

    Thank you

    #2
    You could try a wider stop setting when executing in real-time?
    RayNinjaTrader Customer Service

    Comment


      #3
      I actually thought about this... but I wanted to be sure this happens because the Real Time simulator uses Bid/Ask prices whilst the Backtester uses simply Last price data.

      Comment


        #4
        Yes, simulator used bid/ask for triggering orders while backtest uses the bar information which with GAIN is driven by the bid price.
        RayNinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Jon17, Today, 04:33 PM
        0 responses
        1 view
        0 likes
        Last Post Jon17
        by Jon17
         
        Started by Javierw.ok, Today, 04:12 PM
        0 responses
        4 views
        0 likes
        Last Post Javierw.ok  
        Started by timmbbo, Today, 08:59 AM
        2 responses
        10 views
        0 likes
        Last Post bltdavid  
        Started by alifarahani, Today, 09:40 AM
        6 responses
        41 views
        0 likes
        Last Post alifarahani  
        Started by Waxavi, Today, 02:10 AM
        1 response
        20 views
        0 likes
        Last Post NinjaTrader_LuisH  
        Working...
        X