Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

GetProfitLoss()

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

    GetProfitLoss()

    GetProfitLoss() does not have a PerformanceUnit.Ticks parameter. I would like to track running profit on a tick basis, do I have to do it based by deriving ticks from PerformanceUnit.Points ? Is there a generic way to do that calculation so that it works on any security?
    Last edited by monpere; 03-16-2008, 06:14 PM.

    #2
    There is no PerformanceUnit.Ticks right now. You will have to roll your own calculations. Use TickSize and Instrument.MasterInstrument.Pointvalue to do your math.
    Josh P.NinjaTrader Customer Service

    Comment


      #3
      Will there be PerformanceUnit.Ticks in the future? because you cannot calculate it using Instrument.MasterInstrument.Pointvalue without knowing the number of ticks per point, and that's different for each instrument. I don't want to have to code instrument names in my strategy. This must have been an oversight in your original design.

      Originally posted by Josh View Post
      There is no PerformanceUnit.Ticks right now. You will have to roll your own calculations. Use TickSize and Instrument.MasterInstrument.Pointvalue to do your math.

      Comment


        #4
        >> Will there be PerformanceUnit.Ticks in the future?
        Unfortunately there is no ETA yet.

        Comment


          #5
          How about?

          Total Ticks = Total Points / TickSize
          RayNinjaTrader Customer Service

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by argusthome, 03-08-2026, 10:06 AM
          0 responses
          64 views
          0 likes
          Last Post argusthome  
          Started by NabilKhattabi, 03-06-2026, 11:18 AM
          0 responses
          41 views
          0 likes
          Last Post NabilKhattabi  
          Started by Deep42, 03-06-2026, 12:28 AM
          0 responses
          22 views
          0 likes
          Last Post Deep42
          by Deep42
           
          Started by TheRealMorford, 03-05-2026, 06:15 PM
          0 responses
          25 views
          0 likes
          Last Post TheRealMorford  
          Started by Mindset, 02-28-2026, 06:16 AM
          0 responses
          52 views
          0 likes
          Last Post Mindset
          by Mindset
           
          Working...
          X