Problems with Backtesting IDs

Created at 28 Oct 2014, 20:18
How’s your experience with the cTrader Platform?
Your feedback is crucial to cTrader's development. Please take a few seconds to share your opinion and help us improve your trading experience. Thanks!
SI

Sir2

Joined 29.12.2012

Problems with Backtesting IDs
28 Oct 2014, 20:18


In Backtesting:

1.- I identify a closed position in the Chart, 

2.- Click on it and check the data in History, showing ID38, the info in history and the info in chart are consistent.

3.- Take that ID38 and CloseTime 16:46 from History to check the Trading Info at the Log and surprise:

     there is a close at that time with ID44 ?¿

     ID38 was closed at 15:57 based on the Log ?¿

4.- Checking the Chart at 15:57: shows on History ID16; and ID16 on Log shows 15:41 (exactly the previous transaction closed...)

Regards.

 


@Sir2
Replies

Spotware
29 Oct 2014, 12:15

ID38 was closed at 15:57 based on the Log

Could you please provide the Log?


@Spotware

Sir2
29 Oct 2014, 13:05 ( Updated at: 21 Dec 2023, 09:20 )

RE:

Spotware said:

I'm uploading 3 screenshots: you can see the info for ID38 in the history and log..., regards.


@Sir2

Spotware
29 Oct 2014, 14:24

In history tab the id column shows closing deal id which is not the same as position id. You can match history id and position id using History collection. Every historical trade contains both position id and closing deal id.


@Spotware

Sir2
29 Oct 2014, 14:51

RE:

Spotware said:

In history tab the id column shows closing deal id which is not the same as position id. You can match history id and position id using History collection. Every historical trade contains both position id and closing deal id.

Ok, thanks for the answer.  

I think is a good idea to rename column names: PID and DID to show that are different, and also include the PID column in the History tab...

Regards.


@Sir2

Spotware
29 Oct 2014, 15:03

Thank you for your suggestion, we will do it in that way.

 


@Spotware