• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

How is Performance.RealtimeTrades.TradesPerformance.Perce nt.CumProfit calculated?

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

    How is Performance.RealtimeTrades.TradesPerformance.Perce nt.CumProfit calculated?

    Hi. I had my custom strategy send me an email at the end of one day's trading session and the email included the day's [Performance.RealtimeTrades.TradesPerformance.Curre ncy.CumProfit] and [Performance.RealtimeTrades.TradesPerformance.Perce nt.CumProfit]. For an account value of about $1000, I got an email saying at the end of the trading day, I got 31.8799999999961 as my Currency.CumProfit and 0.00065834741769355 was the Percent.CumProfit. It maybe be just me but considering the figures of the account value and the Currency.CumProfit, the Percent.CumProfit seems way off. How exactly is Percent.CumProfit calculated? What figures are used in its calculation and how do they interact? Please let me know. Thanks.

    #2
    Hello,

    Thank you for your post.

    The cumulative profit in percent is calculated with:

    PRODUCT(1 + profit / entry price) of all trades - 1

    Below is a link to the Statistic Definitions where you can compare this with the formula of the currency.
    http://www.ninjatrader.com/support/h...efinitions.htm
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      Thanks for the prompt response. It turns out that definition is different from what I thought it was. Could you please tell me, then, if AvgProfit is the same as CumProfit in terms of their definition? If not, could you please tell me the definition of AvgProfit? I couldn't find it in the link you sent me and it may be what I am looking for (I am thinking of a parameter that establishes the ratio between profit and accountvalue e.g. profit / accountvalue as percentage ). Thanks in advance.

      Comment


        #4
        Hi mbesha,

        The AvgProfit is not in the Statistic Definitions because this is not included with any Performance Reports.

        It can be accessed however from a NinjaScript Strategy.
        http://www.ninjatrader.com/support/h...?avgprofit.htm

        This would be an average of the profits.

        So a profit of 1, 5 and 10 would be an average profit of 5.33.
        Chelsea B.NinjaTrader Customer Service

        Comment


          #5
          So I take it that there is no NT defined variable or parameter that expresses the P/L as a percentage of the account value. Thanks. I will try to create a variable in my strategy then that will do that for me.

          Comment


            #6
            Hi mbesha,

            There is not a value like this in NinjaTrader but yes you can calculate this yourself.
            Chelsea B.NinjaTrader Customer Service

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by fredfred, Today, 03:41 AM
            3 responses
            10 views
            0 likes
            Last Post NinjaTrader_ChristopherS  
            Started by TraderYoda, Today, 03:33 AM
            0 responses
            1 view
            0 likes
            Last Post TraderYoda  
            Started by pjsmith, Today, 02:56 AM
            0 responses
            5 views
            0 likes
            Last Post pjsmith
            by pjsmith
             
            Started by ntbone, Yesterday, 08:10 PM
            0 responses
            12 views
            0 likes
            Last Post ntbone
            by ntbone
             
            Started by chrislou, 08-28-2015, 03:27 AM
            14 responses
            2,884 views
            0 likes
            Last Post nkhoi
            by nkhoi
             
            Working...
            X