information about positions during backtesting
Created at 22 Nov 2021, 11:07
information about positions during backtesting
22 Nov 2021, 11:07
How can I get information about my positions during backtesting?
It is not possible in the following way.
var positions = Positions.FindAll("", symbolname);
best regards.
amusleh
23 Nov 2021, 09:53
Hi,
All the positions your cBot opens during back test and live is in Positions collection.
You don't have to use the FindAll method with empty label parameter, if you want to filter the current symbol positions you can do it by using Linq Where:
If you have provided a label for your positions then use FindAll method.
@amusleh