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 chbruno, Today, 04:10 PM
        0 responses
        3 views
        0 likes
        Last Post chbruno
        by chbruno
         
        Started by josh18955, 03-25-2023, 11:16 AM
        6 responses
        436 views
        0 likes
        Last Post Delerium  
        Started by FAQtrader, Today, 03:35 PM
        0 responses
        6 views
        0 likes
        Last Post FAQtrader  
        Started by rocketman7, Today, 09:41 AM
        5 responses
        19 views
        0 likes
        Last Post NinjaTrader_Jesse  
        Started by frslvr, 04-11-2024, 07:26 AM
        9 responses
        127 views
        1 like
        Last Post caryc123  
        Working...
        X