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

How to show P&L in chart

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

    How to show P&L in chart

    Hi,

    I couldn't find anything about my question, maybe it's not an indicator question...
    Is it possible to show the realized P&L and the P&L from the actual open position of the account in the chart or in an external window via a script (I do not mean ATM strategy trades, I mean all manual trades made on the actual day)?
    The background for this question is, I want to define a maximum loss for the day and want to be warned if this level will reached in x-ticks.

    Thanks Mario
    Last edited by md236; 04-19-2017, 12:09 PM.

    #2
    Hello Mario,

    While this is not supported for NinjaTrader 7, it is possible to loop through accounts and find positions and orders from an indicator.

    Below is a link to another thread with unsupported sample code.


    And a link to more unsupported code for adding event handlers.
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      Hi Chelsea,

      thanks for the links, I'll look if it works for me, to bad that this isn't direct supported

      Mario

      Comment


        #4
        http://www.garciniasupplier.com/garcinia-shaping-pro/

        Garcinia Shaping Pro Emphasize the color blue in your surroundings. The color blue has been proven to help suppress your appetite. Try placing a blue vase on the table where you eat most of your meals to see if it works. Keep red, orange and yellow away from your eating areas. Many people do not know it, but the amount we eat can be easily altered by changing what the eye can see in its surroundings. Keep this information in mind as you are choosing your clothes for the day or putting out your dinner plates.

        Readmore>>>http://www.garciniasupplier.com/garcinia-shaping-pro/

        Comment


          #5
          very interesting answer to my technical problem

          Comment


            #6
            Hello Mario,

            I´m not sure, if it is what are you looking for, but try this: http://rainbow-in.com/

            ...so now I read your post entirely, so I´m afraid that it is not what are you looking for... but if you don´t know it, try it, it is great
            Last edited by emuns; 04-20-2017, 06:50 AM.

            Comment


              #7
              Hi emuns,

              thank you for this link, it's awsome, but it's now what I looked for, but I'll use it now, it's really great

              Mario

              Comment


                #8
                Hi Chelsea,

                where can I find documentation about the class NinjaTrader.Cbi.Account?

                Thanks
                Mario

                Comment


                  #9
                  Hello Mario,

                  Are you asking for NinjaTrader 7 or NinjaTrader 8?

                  This would not be supported for NinjaTrader 7 and there is no documentation.

                  Below is a link to the help guide on the Account class for Addon class scripts (non-strategy scripts).
                  Chelsea B.NinjaTrader Customer Service

                  Comment


                    #10
                    Hello Mario,

                    so I hope, I understand now and completely forgot my small contribution on this theme here (it is just small modification of Zachary´s "indi" from the same thread): http://ninjatrader.com/support/forum...ighlight=emuns
                    it is for NT8
                    Last edited by emuns; 04-20-2017, 08:15 AM.

                    Comment

                    Latest Posts

                    Collapse

                    Topics Statistics Last Post
                    Started by funk10101, Today, 09:43 PM
                    0 responses
                    3 views
                    0 likes
                    Last Post funk10101  
                    Started by pkefal, 04-11-2024, 07:39 AM
                    11 responses
                    36 views
                    0 likes
                    Last Post jeronymite  
                    Started by bill2023, Yesterday, 08:51 AM
                    8 responses
                    44 views
                    0 likes
                    Last Post bill2023  
                    Started by yertle, Today, 08:38 AM
                    6 responses
                    26 views
                    0 likes
                    Last Post ryjoga
                    by ryjoga
                     
                    Started by algospoke, Yesterday, 06:40 PM
                    2 responses
                    24 views
                    0 likes
                    Last Post algospoke  
                    Working...
                    X