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 NullPointStrategies, 03-13-2026, 05:17 AM
      0 responses
      96 views
      0 likes
      Last Post NullPointStrategies  
      Started by argusthome, 03-08-2026, 10:06 AM
      0 responses
      154 views
      0 likes
      Last Post argusthome  
      Started by NabilKhattabi, 03-06-2026, 11:18 AM
      0 responses
      82 views
      0 likes
      Last Post NabilKhattabi  
      Started by Deep42, 03-06-2026, 12:28 AM
      0 responses
      54 views
      0 likes
      Last Post Deep42
      by Deep42
       
      Started by TheRealMorford, 03-05-2026, 06:15 PM
      0 responses
      72 views
      0 likes
      Last Post TheRealMorford  
      Working...
      X