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

Trade Profit

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

    Trade Profit

    Is there a way to know after I close my position how much money I made from it?

    Thanks

    #2
    Hello Kiss987,

    Thank you for your note.

    Is this a strategy which is opening and closing the position or are you manually trading? If strategy, how are you looking to use this information, visually for yourself or programmatically?

    You could always use the trade performance tool under Control Center>New>Trade Performance, and set your desired time frame as well as "Display" to Trades, which will show your profit from the last trade relatively easily. You can read more about trade performance here,


    I look forward to your reply.
    Last edited by NinjaTrader_AlanP; 12-17-2017, 05:37 PM.
    Alan P.NinjaTrader Customer Service

    Comment


      #3
      Thank you for your reply.

      My question is about trading using a strategy in NinjaTrader 7 and I want to know the information programmatically.

      Comment


        #4
        Hello Kiss987,

        You could use Trade Collection to pull the previous trades PL. The following is a link to our helpguide which covers Trade Collection,


        The following is a sample which demonstrates using performance,


        Please let us know if you need further assistance.
        Alan P.NinjaTrader Customer Service

        Comment


          #5
          Thank you.

          The value ProfitCurrency gives the profit in my account currency or in my trade currency. For example, If I traded EURGBP but my account is in us dollars, in which currency the value is given?
          Last edited by kiss987; 12-19-2017, 07:35 AM.

          Comment


            #6
            Hello kiss987,

            The Currency PL will be whatever the base pair is. So if you're trying EURGBP, the values displayed will be in pounds.

            Please let us know if you need further assistance.
            Alan P.NinjaTrader Customer Service

            Comment


              #7
              Is there a way to know the profit in my account currency (USD in the past example)?

              Thanks

              Comment


                #8
                Hello kiss987,

                Yes, you would take your profit in terms of foreign currency and convert it back to dollars using the FX rate.

                For example, you have 1,000 Sterling in profit. You would take the current rate of GBP/USD, multiplied by 1000 to get your profit in dollars. For example using 1.34 GBP/USD, =1,340USD.

                I wrote an indicator which when applied to say crude oil, will give you its price in foreign currency. You basically would be doing the opposite in your case, FX to USD rather than USD to FX.


                Please let us know if you need further assistance.
                Alan P.NinjaTrader Customer Service

                Comment


                  #9
                  Do you have it on NT 7?

                  Thanks

                  Comment


                    #10
                    Hello kiss987,

                    I do not have the indicator for NT7.

                    Please let us know if you need further assistance.
                    Alan P.NinjaTrader Customer Service

                    Comment

                    Latest Posts

                    Collapse

                    Topics Statistics Last Post
                    Started by frankthearm, Today, 09:08 AM
                    7 responses
                    29 views
                    0 likes
                    Last Post NinjaTrader_Clayton  
                    Started by NRITV, Today, 01:15 PM
                    1 response
                    5 views
                    0 likes
                    Last Post NinjaTrader_Jesse  
                    Started by maybeimnotrader, Yesterday, 05:46 PM
                    5 responses
                    25 views
                    0 likes
                    Last Post NinjaTrader_ChelseaB  
                    Started by quantismo, Yesterday, 05:13 PM
                    2 responses
                    17 views
                    0 likes
                    Last Post quantismo  
                    Started by adeelshahzad, Today, 03:54 AM
                    5 responses
                    33 views
                    0 likes
                    Last Post NinjaTrader_BrandonH  
                    Working...
                    X