Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Profit Calculation

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

    Profit Calculation

    I'm wondering how the system is calculating profits for a currency pair. I attach a screenshot with an example for GBPJPY.

    Following the selected line on the image the result should be:

    I buy 1539 units of GBPJPY at 118.66 = 182617.74
    I sell 1539 units of GBPJPY at 118.63 = 182571.57
    There is a loss of -46.17
    On the grid we can see a loss of -0.6
    Commissions are not considered

    This amount has to be converted to the currency of the account. But, why this difference? How is profit calculated?
    Attached Files

    #2
    Hello,

    Thank you for your post.

    Profit will be calculated as entry price - exit price. However, when trading non-USD pairs such as the GBPJPY, you need to ensure you have real-time streaming data for the USD cross pair for the PnL to calculate correctly. If you do not have the cross pair loaded, the results will be off.

    You would not be able to correct this recorded trade, however as long as you are sure you have the USD base pair loaded in a Market Analyzer window, you should expect the PnL to report correctly.

    Click here for more information on using the Market Analyzer:

    http://www.ninjatrader.com/support/helpGuides/nt7/index.html?market_analyzer.htm

    Please let me know if you have additional questions.
    MatthewNinjaTrader Product Management

    Comment


      #3
      My example was not very good but you caught my idea. Profit is calculated per unit on the table I attached but then it's not multiplied by the number of units on the realized PnL. This calcualtion is correct for the other currency pairs I'm trading

      I'm trading other US$ paired currencies (GBPUSD, EURUSD, etc...). I don't see the why this calcualtion is not correct if I'm already streaming data for the dollar and I don't see the link with the Market analyzer. I have already the MA open and all data is being received correctly.

      THanks

      Comment


        #4
        In this example do you have the USDJYP streaming data as well? Did you have data streaming at the time the PnL was calculated?
        MatthewNinjaTrader Product Management

        Comment


          #5
          I also trade USDJYP, I was receiving data while this happend and the calculation is correct for USDJYP and all the other pairs.

          Comment


            #6
            Do you have any examples of this happening on Non-USD pairs?

            What was the quantity of these orders? Are you able to reproduce? If so, what steps are needed?
            MatthewNinjaTrader Product Management

            Comment


              #7
              Profit calculation

              The only non-USD pairs I trade is GBPJPY and I only have this problem with this pair. USD pairs work perfectly.

              An example attached: as you can see there is a position on GBPJPY of 1877s at an av price of 118.86. The PIP for this pair is 0.01 . So, the value of the unrealized column should be, at least of 18.77 (positive or negative).

              With USDCAD the calculation is correct
              Attached Files

              Comment


                #8
                Hello,

                If you're not having any issues with the USD based pairs, and you're sure you submitted the correct order quantity, the only thing that would cause this is not having streaming data for the conversation at that time. You will not be able to correct the results you see in the performance results, however as long as you're sure you having streaming data for the corresponding cross pair, you should expect the PnL to be calculated accordingly.
                MatthewNinjaTrader Product Management

                Comment


                  #9
                  Data is being correctly received for all pairs. I'm sure.

                  I suppose data should arrive or not. There is not middle point.

                  Comment


                    #10
                    If you are sure the data is being received in real-time, can you please give me what steps are necessary to reproduce the results you are seeing?
                    MatthewNinjaTrader Product Management

                    Comment


                      #11
                      Profit Calculation

                      This happens with a simple strategy. I tested it with Sim account

                      I attach the strategy
                      Attached Files

                      Comment


                        #12
                        Hello,

                        Thank you -

                        Can you please go to the Account Performance tab--> select the Execution tab--> tell me what value is used in the rate column for the results. Is this an even value of 1?
                        MatthewNinjaTrader Product Management

                        Comment


                          #13
                          Profit Calculation

                          I paste a screeshot
                          Attached Files

                          Comment


                            #14
                            Ok thanks based on that this is being calculated correctly if you're using a micro lot (1000 units) as in your strategy.

                            From your earlier screen shot you posted where USDCAD calculated correctly, however you're using a mini lot value (10,000 units).

                            Can you please double check your GPYJPY Strategy and ensure you are using the intended lot size.
                            MatthewNinjaTrader Product Management

                            Comment


                              #15
                              What I sent you is just an example. The lot I use is variable depending on the day. Today I buy lots of 1904 units for GBPJPY.

                              I don't see why it should affect the profit calculation,

                              Comment

                              Latest Posts

                              Collapse

                              Topics Statistics Last Post
                              Started by benmarkal, Yesterday, 12:52 PM
                              3 responses
                              22 views
                              0 likes
                              Last Post NinjaTrader_Gaby  
                              Started by helpwanted, Today, 03:06 AM
                              1 response
                              16 views
                              0 likes
                              Last Post sarafuenonly123  
                              Started by Brevo, Today, 01:45 AM
                              0 responses
                              11 views
                              0 likes
                              Last Post Brevo
                              by Brevo
                               
                              Started by aussugardefender, Today, 01:07 AM
                              0 responses
                              6 views
                              0 likes
                              Last Post aussugardefender  
                              Started by pvincent, 06-23-2022, 12:53 PM
                              14 responses
                              244 views
                              0 likes
                              Last Post Nyman
                              by Nyman
                               
                              Working...
                              X