Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Strategy Analyzer more trades on single day vs in range

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

    Strategy Analyzer more trades on single day vs in range

    I'm having trouble with my strategy in Strategy Analyzer:
    • Test with date range like 3/3 to 3/21, and 3/17 has 4 trades.
    • Test ONLY 3/17 and it has 9 trades.
    I do have some logic for things like trailing max drawdown limit, daily max loss, etc but can't see evidence of those affecting this.


    I use SystemPerformance.AllTrades.TradesPerformance.Curr ency.CumProfit to help me track daily PnL:
    Code:
    double previousStartOfDay = startOfDayCumProfit;
    startOfDayCumProfit = SystemPerformance.AllTrades.TradesPerformance.Curr ency.CumProfit;​
    Are there any gotchas that would cause the behavior I described? I'm just stumped right now

    #2
    Hello iantriestrading,

    Changing the data can change the values being processed by the logic.

    It's completely possible that by adding or removing days of data that this completely changes the performance.

    In the Strategy Analyzer there are not any gotchas I can think of related to SystemPerformance.

    If you would like to know what is causing differences, print or write to file the condition and data information to compare.
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      Hi Cheslea, I just want to make sure I undrstand what you are saying.

      It sounds like you're saying it changes the data when I add more to a date range. But you mean it adds to the data, correct?
      So if I originally select just 3/17 for testing, but then I change to 3/3-3/21, I'm adding data, not changing any, right?

      Comment


        #4
        Hello iantriestrading,

        Adding or removing days would be changing the data. Changing the start and end dates would be changing the data.

        If more days are added, the data set is not the same. If days are removed, the data set is not the same. If the amount of days are the same but the start and end date have changed, the data set is not the same.

        It's possible changing the bar the script starts processing with can change all subsequent order submission and fill times.
        Chelsea B.NinjaTrader Customer Service

        Comment


          #5
          I'm not saying the data set is the same if more days are added.
          Just making sure we are talking about it the same way. All clear now.
          I think the problem may be related to something in how my strategy tracks trailing max drawdown, or the bias decisionmaking.



          Comment


            #6
            Hello iantriestrading,

            The debugging output would provide that information.
            Chelsea B.NinjaTrader Customer Service

            Comment


              #7
              Yes, I am aware. Thank you

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by pjsmith, 10-01-2019, 08:59 AM
              26 responses
              1,988 views
              0 likes
              Last Post nephew94  
              Started by Str8boominit, 04-14-2025, 06:03 PM
              6 responses
              73 views
              0 likes
              Last Post Str8boominit  
              Started by TAJTrades, Today, 09:01 AM
              5 responses
              29 views
              0 likes
              Last Post NinjaTrader_ChelseaB  
              Started by quantyse_ntforum, 03-10-2025, 09:05 AM
              14 responses
              244 views
              0 likes
              Last Post dakensei  
              Started by ntwong, 10-08-2024, 08:22 PM
              10 responses
              228 views
              0 likes
              Last Post akvevo
              by akvevo
               
              Working...
              X