Problems with Backtesting IDs
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.
Replies
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, 12:15
Could you please provide the Log?
@Spotware