Unrealize PnL on Zorro and IB doesn't match

Posted By: marr

Unrealize PnL on Zorro and IB doesn't match - 07/19/19 16:22

I was testing my strategy live on Zorro paper account and i found some weird behavior where the Unrealized PnL of Zorro and TWS doesn't match.
Here is what it looks like:

My AssetsList is copied from IB

Can someone explain why this is happening?

Attached picture usdcad.png
Posted By: Spirit

Re: Unrealize PnL on Zorro and IB doesn't match - 07/19/19 21:39

I dont know a zorro variable for unrealized pnl, how do you calculate it?
Posted By: marr

Re: Unrealize PnL on Zorro and IB doesn't match - 07/20/19 05:14

I don't have any user defined PnL, so i used the default from the manual ProfitOpen and I did not set it manually
Posted By: Spirit

Re: Unrealize PnL on Zorro and IB doesn't match - 07/20/19 05:51

I believe ProfitOpen is sum of all trades and is not the same as unrealized pnl. Which is an account parametre and for example does not include forex, which are summed under "cash".
Posted By: OptimusPrime

Re: Unrealize PnL on Zorro and IB doesn't match - 07/21/19 02:28

Is this what you are looking for?

WinValLong
WinValShort
WinValTotal
Open profit of all currently winning trades.

LossValLong
LossValShort
LossValTotal
Open loss amount of all currently losing trades.
Posted By: marr

Re: Unrealize PnL on Zorro and IB doesn't match - 07/21/19 03:44

Well i dont use any variable to display the unrealized PnL on zorro, it use the default whatever it is when showing on the panel. So i dont know why the values on what zorro panel are showing and my TWS doesnt match
Posted By: Zheka

Re: Unrealize PnL on Zorro and IB doesn't match - 07/25/19 13:13

Judging from the screenshot and prices, the number displayed by Zorro is correct. You have to dig into TWS settings.
Posted By: marr

Re: Unrealize PnL on Zorro and IB doesn't match - 07/25/19 13:24

it is weird that TWS follows only the info display on its platform so in Zorro display a winning / losing value, it doesnt match to the changes in TWS and these difference is huge like 10x.
Posted By: Zheka

Re: Unrealize PnL on Zorro and IB doesn't match - 07/25/19 15:14

Is you account currency same in TWS and in Zorro?
Do you not have any other positions in TWS?
Do you see Zorro's trade immediately reflected in TWS with the same size, etc?

What does this
https://www.interactivebrokers.com/...altimeactivitymonitoring/fxportfolio.htm

show?
Posted By: marr

Re: Unrealize PnL on Zorro and IB doesn't match - 07/25/19 15:30

1. yes both on USD
2. yes I tested it with one position open observed
3. yes both TWS and Zorro update in real time simultaneously
4. values on TWS reflect the same where the Unrealized Profit is = Realized profit when closed
Posted By: Zheka

Re: Unrealize PnL on Zorro and IB doesn't match - 07/25/19 16:26

Originally Posted by marr

3. yes both TWS and Zorro update in real time simultaneously
Is the size of the trade same?
Originally Posted by marr

4. values on TWS reflect the same where the Unrealized Profit is = Realized profit when closed
Can you pls clarify this bit?
Posted By: marr

Re: Unrealize PnL on Zorro and IB doesn't match - 07/25/19 17:10

3. Exactly the same even the timestamp, size, entry value
4. This is just a placeholder image, the summary reflect on the info shown in TWS but not Zorro

Attached picture Untitled.png
© 2024 lite-C Forums