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

Realistic Back-Test

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

    Realistic Back-Test

    Hi all,

    I have a small issue. I was developing a simple strategy with stop loss. When i back test this strategy i see the next problem:

    If the market open below my stop loss the NT does the next:

    ( You can see the screen shoot called "A issue" )

    This is unrealistic trade.
    I think that this trade shoul be close at the open of first bar at market.
    Is that possible ?

    Thanks for your help.
    Attached Files

    #2
    Please post a screenshot of your strategy settings dialog.

    Comment


      #3
      Ok Dierk

      This is a screen shot of the "set up" and another trade with mistake.
      Attached Files

      Comment


        #4
        The backtest scenario does not match the real market since your stop (if you had it placed in a real market) likely would have been triggered around your stop price.

        This is just a limitation of what backtesting can do. Please read more here: http://www.ninjatrader-support.com/H...sBacktest.html

        Comment


          #5
          Hi Dierk

          I understand what do you say me.

          Where you say :

          “- in a real market your stop could have been triggered at any price between your stop price and the opening of the next day”

          You have reason but all markets do not negociate 24 hours.

          For example FDAX close at 22:00 PM o clock and open at 8:00AM o clock.
          There is not negociate between 22:00 PM and 8:00AM.
          If this market open below your stop then... you should close your trade on the open of the first bar.
          In this case the back-test of “Strategy Analyzer” is very unrealistic because i unknow the maximun loss of the strategy in a worst gap.

          I think that this is a mistake on Swing Trading strategies.


          I think that the strategy should can to choose between these two types of markets.
          May be this would be a good solution.

          Thanks for your reply, thanks for your help and sorry for my painful English
          Last edited by MGDavid; 07-20-2007, 05:07 AM.

          Comment


            #6
            - you could get around that issue by setting Exit On Close = true.
            - you don't know how the market would have traded as you had your order live. May be it had opened at a different price.

            Comment


              #7
              Hi.

              I understand you , thanks for your reply.

              But i have a big problem. ¿ Can i do a realistic back-test trading stocks with stop orders ?.
              If the stock open below my stop loss then ... the back test will be unrealistic, because i do not close this position between close of today and the open of tomorrow. I need close this position at open of the next bar.

              In the next screen shot i do a back test with another software.

              This is a symple method . Buy at stop at the highest of 20 bars and sell at stop at the lowest of 20 bars. The back test is correct and the systems close the position at the open of tomorrow.
              I think that NT should do this.

              ¿ Can i do this with NT ?.

              Sorry for my english and thanks for your time.
              Regards
              Attached Files

              Comment


                #8
                The situation can not be handled realistically, since you don't know how the market would have traded if you had you stop order in place. Assuming that the order would have been filled at the open of the next day is - to the best of my knowledge - just not realistic.

                I suggest revising your strategy so that the overall profitability is not dependent on situations like these.

                Comment


                  #9
                  I understand you Dierk !

                  Thanks for your fast reply !.

                  Regards

                  Comment


                    #10
                    You're welcome.

                    Comment

                    Latest Posts

                    Collapse

                    Topics Statistics Last Post
                    Started by JGriff5646, Today, 10:02 PM
                    0 responses
                    1 view
                    0 likes
                    Last Post JGriff5646  
                    Started by AdamDJ8, Today, 09:18 PM
                    0 responses
                    2 views
                    0 likes
                    Last Post AdamDJ8
                    by AdamDJ8
                     
                    Started by knowmad, Today, 03:52 AM
                    2 responses
                    29 views
                    0 likes
                    Last Post knowmad
                    by knowmad
                     
                    Started by ETFVoyageur, Today, 07:05 PM
                    0 responses
                    11 views
                    0 likes
                    Last Post ETFVoyageur  
                    Started by Orion815, 05-02-2024, 08:39 AM
                    2 responses
                    18 views
                    0 likes
                    Last Post Orion815  
                    Working...
                    X