Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

entry & exit distribution + backtest

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

    entry & exit distribution + backtest

    hi how can i add a variable to my backtesting report?

    basically i want to know "where" most of my entries and exits are losers/winners? I do see that the backtest report has entry/exit distribution as far as time is concerned. what i am looking for is if my entries taken above "X" price, for example opening price, were winners or losers.

    for example>

    opening price for the day = 100

    enter trade at 110 and this trade was a winner.

    so perhaps my backtesting report can include the ''opening price'' of the day etc

    any ideas?

    #2
    Hello calhawk01,

    You would not be able to add this to the Backtest Report but you may manually Print out the information that you would like and view it inside of the Output window.

    You may view our reference at the following link that goes over getting Trade Performance statistics.


    Happy to be of further assistance.
    JCNinjaTrader Customer Service

    Comment


      #3
      Originally posted by NinjaTrader_JC View Post
      Hello calhawk01,

      You would not be able to add this to the Backtest Report but you may manually Print out the information that you would like and view it inside of the Output window.

      You may view our reference at the following link that goes over getting Trade Performance statistics.


      Happy to be of further assistance.
      how can i manually print out a variables information at the time of the trade in the output window?

      Comment


        #4
        Hello calhawk01,

        You may use the Print() function as described in the following link to our Help Guide.


        To open up the Output window you may go to Tools -> Output Window.

        Here is a thread that goes over how to Debug your NinjaScript code that you may view as well that is a good reference when Printing out values to see what they are.
        JCNinjaTrader Customer Service

        Comment


          #5
          ok, so really quick:

          if(.....)
          {golong
          print(opening price)
          }

          output the opening price everytime we go long? please ignore the incorrect coding.. just generalizing

          Comment


            #6
            Calhawk01,

            Correct, every time you go long it will print the opening price of that bar you would index
            i.e.
            Code:
            Print(Open[0]);
            Would print the opening price of the current bar.
            Cal H.NinjaTrader Customer Service

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by Geovanny Suaza, 02-11-2026, 06:32 PM
            0 responses
            583 views
            0 likes
            Last Post Geovanny Suaza  
            Started by Geovanny Suaza, 02-11-2026, 05:51 PM
            0 responses
            339 views
            1 like
            Last Post Geovanny Suaza  
            Started by Mindset, 02-09-2026, 11:44 AM
            0 responses
            103 views
            0 likes
            Last Post Mindset
            by Mindset
             
            Started by Geovanny Suaza, 02-02-2026, 12:30 PM
            0 responses
            554 views
            1 like
            Last Post Geovanny Suaza  
            Started by RFrosty, 01-28-2026, 06:49 PM
            0 responses
            552 views
            1 like
            Last Post RFrosty
            by RFrosty
             
            Working...
            X