Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Last Traded Price

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

    Last Traded Price

    Hello, what is the code to find out what the last traded price is?

    (There's code to find out the ask, bid, High, Low etc, but last traded price?)

    Thanks

    #2
    Hello,

    Last traded price would be Close[0]

    Let me know if I can be of further assistance.
    BrettNinjaTrader Product Management

    Comment


      #3
      Thank you, much appreciated!

      Comment


        #4
        Just another question if
        GetProfitLoss()
        Calculates the unrealized PnL for the position, what is the code for realized PnL?

        Thanks

        Comment


          #5
          Hello,

          Please see the following page:
          http://www.ninjatrader-support.com/H...luesClass.html

          Also the TradesPerformance Class for other useful features:
          http://www.ninjatrader-support.com/H...anceClass.html

          Let me know if I can be of further assistance.
          BrettNinjaTrader Product Management

          Comment


            #6
            thats great, thanks for your help Brett

            Comment


              #7
              Hello,

              You also may find this link helpful as an example of usage:
              http://www.ninjatrader-support2.com/...ead.php?t=4084

              Last edited by mountainclimber; 05-07-2010, 10:28 AM.

              Comment


                #8
                Originally posted by NinjaTrader_Brett View Post
                Hello,

                Please see the following page:
                http://www.ninjatrader-support.com/H...luesClass.html

                Also the TradesPerformance Class for other useful features:
                http://www.ninjatrader-support.com/H...anceClass.html

                Let me know if I can be of further assistance.
                Hello

                The TradesPerformanceValues Class and the TradesPerformance Class show only the values of each strategy running.
                I run 10 strategies concurrently, what code would I use to find the Cummulative PnL of all the strategies at any one time? Like the Total Net Profit in the summary tab of Account Performance?
                Last edited by John833; 05-05-2010, 12:21 PM.

                Comment


                  #9
                  Unfortunately this is not supported.
                  BrettNinjaTrader Product Management

                  Comment

                  Latest Posts

                  Collapse

                  Topics Statistics Last Post
                  Started by mg.watts, Today, 03:17 PM
                  1 response
                  12 views
                  0 likes
                  Last Post NinjaTrader_ChrisL  
                  Started by JTizz, Today, 01:20 PM
                  1 response
                  7 views
                  0 likes
                  Last Post NinjaTrader_Jesse  
                  Started by omermirza, Today, 12:39 PM
                  2 responses
                  12 views
                  0 likes
                  Last Post omermirza  
                  Started by mballagan, Today, 01:02 PM
                  1 response
                  7 views
                  0 likes
                  Last Post NinjaTrader_Kate  
                  Started by larkmail, Today, 12:30 PM
                  3 responses
                  12 views
                  0 likes
                  Last Post NinjaTrader_Kate  
                  Working...
                  X