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 Mindset, 04-21-2026, 06:46 AM
      0 responses
      88 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by M4ndoo, 04-20-2026, 05:21 PM
      0 responses
      135 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Started by M4ndoo, 04-19-2026, 05:54 PM
      0 responses
      68 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Started by cmoran13, 04-16-2026, 01:02 PM
      0 responses
      119 views
      0 likes
      Last Post cmoran13  
      Started by PaulMohn, 04-10-2026, 11:11 AM
      0 responses
      69 views
      0 likes
      Last Post PaulMohn  
      Working...
      X