Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Track pnl on both PartFilled and filled executions

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

    Track pnl on both PartFilled and filled executions

    Hi All,

    This seems to be a grey area on the forum as nothing concrete in resolving this or the best approach from my searches.
    In the simulation accounts I have come across partFilled entries with a single fullyfilled exit, and the other way around, fully filled entry and PartFilled exit executions.
    How would one track the PnL in this situation?
    For example. Enter 3 contracts, onexecution part fills the order, 1 contract and 2 contracts. The position exit is fully filled for 3 contracts. There is only 1 OnExecutionUpdate to work with, so when tracking this trades PnL i can only retreive the last trade using "SystemPerformance"

    How can i track each partial entry/exit as you would see it in the Executions strategy performance Report? See attached. You can clearly see 2 separate entries and 1 exit for a position.

    Thankyou
    Attached Files

    #2
    Hello mr_trade,

    Thank you for your note.

    You'd want to calculate the average entry price as position increases in size if a partial fill is seen. IE. Average Entry: 13707.5 x 2/3 + 13707.75 x 1/3

    then Exit - Average Entry.

    If you close out of a position with 2 executions, this gets counted as 2 trades, the first would be the average of the first entries and the 2nd would be the average of the second entries.

    So let's say we enter with a quantity of 4, and have it partially fills in 4 executions and then we exit with a quantity of 4 and get 2 partial fills with quantities of 2.

    The first two entries will be averaged, and that trade would be the first exit of 2 minus the average of the first 2 entries. The second trade would be the 2nd exit minus the average of the 3rd and 4th entries.

    I recommend starting there and if you have another specific trade that you see and aren't sure how to deal with, to show us that specifically.

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

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by NullPointStrategies, Today, 05:17 AM
    0 responses
    52 views
    0 likes
    Last Post NullPointStrategies  
    Started by argusthome, 03-08-2026, 10:06 AM
    0 responses
    130 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    70 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    44 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Started by TheRealMorford, 03-05-2026, 06:15 PM
    0 responses
    49 views
    0 likes
    Last Post TheRealMorford  
    Working...
    X