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

Bug Report with Strategy Analyzer . . .

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

    Bug Report with Strategy Analyzer . . .

    I don't know if it is just my setup or everyone is seeing this.

    When I run Strategy Analyzer for any timeframe the # of Trades is reported at 15 (three per day).

    However when I look at Avg # of trades per day shows as 4.35.

    Now with my setup it made 9 Long Trades and 6 Short trades These numbers also show incorrectly as
    2.61 trades per day for Long and 2.17 trades per day for Short. When 9 divided by 5 is 1.8 and 6 divided
    by 5 is 1.2.

    I would expect to see for the row Avg. # of trades per day to look like this:

    Avg. # of trades per day | 3 | 1.8 | 1.2

    Given the input of the row:
    Total # of trades | 15 | 9 | 6

    Can this be corrected?

    Thanks.

    #2
    Look at the following page to see how this is calculated:



    There is a constant of 252 trading days per year that is thrown into the calculation.

    Comment


      #3
      Hi ATMtrader0001, thanks for your post.

      It looks like the question is resolved by ZigFried, if your calculations are not matching up with the "Average # of trades per day" formula I will be happy to test a sample script that reproduces the problem.

      Chris L.NinjaTrader Customer Service

      Comment


        #4
        That would be a great way to deterine that IF I was able to run a scenario for a full year. However my code limits the number of trades to 3 per day.
        For the software to report that the Avg # of trades per day at 145% of 3 (for 5 days) of what was actually traded is not a helpful statistic and is misleading.

        That calculation/equation (SUM(ofalltrades)/(# of days between the date of the first trade and the date of the last trade) * 252 / 365) does not work if I were to make
        1 trade per day:

        Lets look at the second half of the equation.
        252/365 = .69041095
        If I were to make 1 trade every trading day that puts me at 252 (the number of trading days) and I would expect the number to be 1 trades. Then if I divide 252 / 252 * .69041095 I would get .6904
        trades per day which under reports by 30%.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by usazencort, Today, 01:16 AM
        0 responses
        1 view
        0 likes
        Last Post usazencort  
        Started by kaywai, 09-01-2023, 08:44 PM
        5 responses
        602 views
        0 likes
        Last Post NinjaTrader_Jason  
        Started by xiinteractive, 04-09-2024, 08:08 AM
        6 responses
        22 views
        0 likes
        Last Post xiinteractive  
        Started by Pattontje, Yesterday, 02:10 PM
        2 responses
        20 views
        0 likes
        Last Post Pattontje  
        Started by flybuzz, 04-21-2024, 04:07 PM
        17 responses
        230 views
        0 likes
        Last Post TradingLoss  
        Working...
        X