Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Cash Value of an Order

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

    Cash Value of an Order

    Hello Forum,

    In my strategy I open several Trades at different times. Now I want to know how much each open Trade/Contract is currently worth in the accounts currency and print that Value in the Output. Also I need the final value of a closed Order.
    The only real Cash Value I could find so far are on the Account. The PnL value would be fine, but I need to break it down to each open trade. Is that theoretically possible?

    My workaround so far: Calculating the Tick difference between OpenPrice and LiveMarketValue * TickValue of the market - Commission...

    #2
    Hello Foxmark,

    Thank you for your post.

    The way you're currently calculating that would probably be the best route to take. Your account doesn't keep separate entries separate on the same instrument - once the order is filled the contracts just become part of your overall account position. There's not really a great way to get the individual PnL for an individual entry directly.

    Please let us know if we may be of further assistance to you.

    Comment


      #3
      Thanks for the answer!
      Just for future reference in case someone else looks this up: On Each day I save the current Account Balance. When I enter a trade I put it in a Dictionary<> with some other data and keep it in there for as long as its open. While it's inside I use the formula from my original post to keep track of its PnL. At the end of the day I compare the sum of my trades with the new Account Balance to check if there are some errors.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by CarlTrading, 03-31-2026, 09:41 PM
      1 response
      62 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 04-01-2026, 02:41 AM
      0 responses
      34 views
      0 likes
      Last Post CarlTrading  
      Started by CaptainJack, 03-31-2026, 11:44 PM
      0 responses
      53 views
      1 like
      Last Post CaptainJack  
      Started by CarlTrading, 03-30-2026, 11:51 AM
      0 responses
      59 views
      0 likes
      Last Post CarlTrading  
      Started by CarlTrading, 03-30-2026, 11:48 AM
      0 responses
      48 views
      0 likes
      Last Post CarlTrading  
      Working...
      X