We could not replicate this. Could you please provide an example strategy which demonstrates this?
The attached strategy is the one that has unveiled a bug. Strategy's log is attached as well. IMPORTANT: Keep some positions open and let strategy run long enough.
DISCLAIMER: Dukascopy Bank SA's waiver of responsability - Documents, data or information available on
this webpage may be posted by third parties without Dukascopy Bank SA being obliged to make any control
on their content. Anyone accessing this webpage and downloading or otherwise making use of any document,
data or information found on this webpage shall do it on his/her own risks without any recourse against
Dukascopy Bank SA in relation thereto or for any consequences arising to him/her or any third party from
the use and/or reliance on any document, data or information found on this webpage.
hebasto
Post subject: Re: IOrder.getProfitLossInAccountCurrency returns Double.NaN
It appears to be the case, we managed to replicate this by disconnecting from internet. The reason for that is because you check the price values, before the platform has received actual last ticks after the reconnect. In order to fix this consider checking the PL values in the onTick method of the respective instrument.