• 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

Custom P/L window with live updates

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

    Custom P/L window with live updates

    Hi
    Some of the leading brokers/platforms provide live P/L .
    I wish to have this functionality in NT . I am looking for P/L per symbol.



    How can this enhancement be done in NT ?

    Thank you

    #2
    nina2020a, I would suggest setting up a Market Analyzer page with your instruments of interest and then you can add the Realized / Unrealized Pnl columns for example in to track to your Pnl, this column has an input to toggle the account, so multiple accounts would be able to be monitored as well with it.
    BertrandNinjaTrader Customer Service

    Comment


      #3
      Hi Bertrand,
      Thanks for the advice. I was able to pull up most of the stuff that I was looking for on Market Analyzer . I had 2 questions:


      Ques 1. Is there a way in standard NT to have the total for all the rows in MA ?

      Ques 2. If an enhancement needs to be done , is there a function in library that can be called to get PL per instrument ?
      If not is there any other way to retrieve 'ProfitLoss' programatically ?



      Thank you.
      n


      Originally posted by NinjaTrader_Bertrand View Post
      nina2020a, I would suggest setting up a Market Analyzer page with your instruments of interest and then you can add the Realized / Unrealized Pnl columns for example in to track to your Pnl, this column has an input to toggle the account, so multiple accounts would be able to be monitored as well with it.

      Comment


        #4
        nina2020a, yes there is a Total Row available as well, right click in your MA and go into the Properties, set show Total Row to 'enabled' please.

        You mean the PnL for the instrument across all accounts?

        Or do you refer to a figure that would add realized + unrealized together in the MA?

        Thanks
        BertrandNinjaTrader Customer Service

        Comment


          #5
          Hi Bertrand - The Total Row worked perfectly- thanks .

          For the second part I am trying to figure out how to report PL per instrument per unit . For eg. if clip size is 25 for instrument xyz and the total PL for xyz is 1000 then PL/unit of xyz will be 1000/25 =40.
          So if PL /instrument is retrieved using some NT function /class from the library , then my developer can code the formula around it .

          Yes PL/Instrument across all accounts, and was thinking not on MA, but on custom window

          I am assuming such pl/unit calculation cannot be done using standard NT without any enhancement ?

          thanks
          Last edited by nina2020a; 08-15-2013, 02:36 AM.

          Comment


            #6
            Thanks for letting me know - great to hear.

            That's unfortunately correct, in our supported NinjaScript there would not functions to report this in. Your developer could review the code used in the MarketAnalyzer columns though (bin > custom > MarketAnalyzer) and see if he could develop an enhancement on this base, however it would use undocumented / unsupported methods.

            I will note your enhancement request though gladly in our product enhancement trackings lists for future consideration.
            BertrandNinjaTrader Customer Service

            Comment


              #7
              So does this mean that a custom zMarketAnalyzer window can be created by copying
              (bin > custom > MarketAnalyzer) as base and then values in the columns can be manipulated using mathematical formulas ?


              Originally posted by NinjaTrader_Bertrand View Post
              That's unfortunately correct, in our supported NinjaScript there would not functions to report this in. Your developer could review the code used in the MarketAnalyzer columns though (bin > custom > MarketAnalyzer) and see if he could develop an enhancement on this base, however it would use undocumented / unsupported methods.
              I will note your enhancement request though gladly in our product enhancement trackings lists for future consideration.

              Comment


                #8
                It would not be a custom window, but an advanced programmer could look into the columns source cs files in the MA folder and then amend with own works, so that additional formulas / math could be introduced. This is not something we could officially support though.
                BertrandNinjaTrader Customer Service

                Comment


                  #9
                  ok that helps , thank you

                  Comment

                  Latest Posts

                  Collapse

                  Topics Statistics Last Post
                  Started by antoniowatkins, Today, 02:24 AM
                  0 responses
                  1 view
                  0 likes
                  Last Post antoniowatkins  
                  Started by itrader46, Today, 02:23 AM
                  0 responses
                  1 view
                  0 likes
                  Last Post itrader46  
                  Started by jeronymite, Today, 01:57 AM
                  0 responses
                  4 views
                  0 likes
                  Last Post jeronymite  
                  Started by vonboettichert, Today, 01:24 AM
                  1 response
                  8 views
                  0 likes
                  Last Post NinjaTrader_Marco  
                  Started by U0000999, Yesterday, 11:17 PM
                  1 response
                  12 views
                  0 likes
                  Last Post NinjaTrader_Marco  
                  Working...
                  X