I'm trying to count PnL made by strategy. I've used to loop through AllTrades collection to count PnL made for current day, but I'd like to avoid using virtual trades to count only those that were really made.
One question comes up immediately: say, if I disable and enable strategy throughout the day for few times, will the strategy include real trades that were made by it while counting the PnL when the strategy is enabled again (RealTime collection)? If not, is there a way to avoid counting virtual trades and just to count real ones (without saving realtime trades into file)?
Thank you in advance.

Comment