Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Unrealized and Realized PnL in points/pips and % in stead of only $

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

    Unrealized and Realized PnL in points/pips and % in stead of only $

    I would realy love to have the posibility to switch to points/pips and % in stead of only $ in the Unrealized and Realized PnL Grids in Strategies and Accounts.
    I realy do not understand why it was only implemented perfect partly, only in the chart trader (so the programing work is already done), but if you go to the Strategy tab and click Grid Properties you only can remove Grids but not change their properties like it would be logical (the posibility to change the Grid to display points/pips or % in stead $ is missing).

    #2
    Thanks for your suggestion. We'll add it to the list of future considerations.

    Comment


      #3
      Good idea.

      Comment


        #4
        Can I please know if this will be implemented, and if yes, when??

        I tryed to code an indicator to do this but it seems imposible (not suported by NT)!?

        If I am wrong and there is some kind of workarround for this problem please point me in the right direction! I want to see at least my PNL in points (pips) as a indicator or in the output window!

        Comment


          #5
          You can always calculate anything in points or pips in NinjaScript.
          RayNinjaTrader Customer Service

          Comment


            #6
            Hello Ray,

            Which function can be used to obtain the pnl of a ATM stategy that was initiated through the chart trader?

            I trayed GetAtmStrategyRealizedProfitLoss(string AtmStrategyId) and baysicly any other NT function but always get compile errors.

            Comment


              #7
              It always helps if you post exact and complete compile errors and a simple as possible version of the erroneous script you are working on.

              Comment


                #8
                Hello Dierk,

                I first wanted to try something very simple: A indicator which, aplayed to the chart, which I use to place my trades trough the chart trader, prints my ATMStrategy total PNL in the output window.

                This is the simple code I thought could do the job:

                // This namespace holds all indicators and is required. Do not change it.
                namespace NinjaTrader.Indicator
                {
                ///<summary>
                /// Profits
                ///</summary>
                [Description("Profits")]
                publicclass Profits : Indicator
                {
                #region Variables
                privatestring atmStrategyId = string.Empty;
                #endregion
                ///<summary>
                /// This method is used to configure the indicator and is called once before any bar data is loaded.
                ///</summary>
                protectedoverridevoid Initialize()
                {
                CalculateOnBarClose =
                true;
                Overlay =
                false;
                PriceTypeSupported =
                false;
                }
                ///<summary>
                /// Called on each bar update event (incoming tick)
                ///</summary>
                protectedoverridevoid OnBarUpdate()
                {
                // Use this method for calculating your indicator values. Assign a value to each
                atmStrategyId = GetAtmStrategyUniqueId();
                Print(
                "PnL is " + GetAtmStrategyRealizedProfitLoss(atmStrategyId).To String());
                }
                #region Properties
                #endregion
                }
                }

                But I get ollowing compile errors:

                The name 'GetAtmStrategyUniqueId' does not exist in the current context (CS0103)
                The name 'GetAtmStrategyRealizedProfitLoss' does not exist in the current context (CS0103)

                Comment


                  #9
                  Methods you are trying to use exist for strategies but not for indicators.

                  Comment


                    #10
                    So, which INDICATOR method or function can I use for do this??

                    Comment


                      #11
                      Not sure I follow. GetAtm... methods are for strategies and not indicators (please consult the docs for details). Your code below is an indicator and not a strategy.

                      Comment


                        #12
                        Hello Dierk,

                        Lets see, as I know I can not use the chart trader and have a strategy running at the same time! Or can I??

                        What I want to do is a work arround to see my Realized PnL for examle printed in the output window in POINTS in stead of $$.

                        At this moment in NT if I go to the Control Center Account TAB I ony can see my Realized PnL in $ but I want have the posibility to see it in POINTS not $.
                        If you are a trader who is compounding seeing your realized PnL in $ will only disturb and confuse you specialy if you have a dayly gole which must be a constant number of Points (you must use Points because of compounding the $ value will change each day).

                        I SIMPLY WANT SEE THE DAYLY REALIZED PnL IN POINTS IN STEAD OF $

                        I though, as a workarround, I needed to create an indicator because I can not (if I am not wrong??) trade trough the chart trader and at the same time have a strategy open which does what I want?????????????

                        Comment


                          #13
                          Unfortunately this is not supported.

                          However, you could try running reports on the account performance tab get the PnL values you are looking for.

                          Comment


                            #14
                            Dierk,

                            I can run reports on the account performance tab and get the PnL values but its the same problem, the PnL values are in $ and I can not change them to Points.

                            Comment


                              #15
                              Please check out the "Mode" combobox.

                              Comment

                              Latest Posts

                              Collapse

                              Topics Statistics Last Post
                              Started by Jon17, Today, 04:33 PM
                              0 responses
                              1 view
                              0 likes
                              Last Post Jon17
                              by Jon17
                               
                              Started by Javierw.ok, Today, 04:12 PM
                              0 responses
                              4 views
                              0 likes
                              Last Post Javierw.ok  
                              Started by timmbbo, Today, 08:59 AM
                              2 responses
                              10 views
                              0 likes
                              Last Post bltdavid  
                              Started by alifarahani, Today, 09:40 AM
                              6 responses
                              40 views
                              0 likes
                              Last Post alifarahani  
                              Started by Waxavi, Today, 02:10 AM
                              1 response
                              19 views
                              0 likes
                              Last Post NinjaTrader_LuisH  
                              Working...
                              X