Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Backtest continuous ES with stop loss by percentage

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

    Backtest continuous ES with stop loss by percentage

    Hi

    I am very new to NinjaTrader and the futures backtesting

    I'm using continuous ES futures contact to backtest a strategy which use a percentage to calculate the stop loss price

    Since the historical price is offset with the Merge back adjusted policy, is it totally wrong to use the percentage for the stop loss?

    Which Calculation Mode should I use instead?

    Thank you very much


    #2
    Hello wahahatrader,

    Your stoplloss price wouldn't have any effect on the merging of contract data when viewing a continuous contract. You would have to take a look at where the stop was placed and see if that price is valid for the given time when the strategy was trading, if it was not you could adjust the values used for the stoploss.

    Comment


      #3
      How can I check the original price for the historical ES contracts without the merging? like ES 12-20? thanks

      Comment


        #4
        Hello wahahatrader,

        You would need to turn off the merge policy and then reload a chart with that specific contract selected.

        Comment


          #5
          Great thanks

          Is there any function to get the Rollover Dates in the ninja script?

          Comment


            #6
            Hello wahahatrader,

            You can see the linked script which works with the rollover collections.

            Shows a button on the chart to roll the expiry to the next available contract month. Option to hide button until a number of days before or on roll date. Another option to confirm by opening the instrument overlay selector or automatically rollover without confirmation. (Update June 27th, 2019 – Added an option to show […]

            Comment


              #7
              Thank you so much

              Comment


                #8
                When I use Merge Non back adjusted settings

                The chart looks like discontinued on 15 Sep 2024

                But the rollover day is 16 Sep 2024 in the ES contract setting

                Is it the normal behavior?

                Thanks

                Click image for larger version

Name:	rollover-days-question.png
Views:	75
Size:	192.8 KB
ID:	1321264

                Comment


                  #9
                  Hello wahahatrader,

                  Most contracts will trail off at the end of the contract as people no longer use that contract. On the following day the new contract will start and will be at a new offset.

                  Comment

                  Latest Posts

                  Collapse

                  Topics Statistics Last Post
                  Started by NullPointStrategies, Today, 05:17 AM
                  0 responses
                  52 views
                  0 likes
                  Last Post NullPointStrategies  
                  Started by argusthome, 03-08-2026, 10:06 AM
                  0 responses
                  130 views
                  0 likes
                  Last Post argusthome  
                  Started by NabilKhattabi, 03-06-2026, 11:18 AM
                  0 responses
                  70 views
                  0 likes
                  Last Post NabilKhattabi  
                  Started by Deep42, 03-06-2026, 12:28 AM
                  0 responses
                  43 views
                  0 likes
                  Last Post Deep42
                  by Deep42
                   
                  Started by TheRealMorford, 03-05-2026, 06:15 PM
                  0 responses
                  47 views
                  0 likes
                  Last Post TheRealMorford  
                  Working...
                  X