Hi All, is there a good example out there of how to compute the number of bars held on a position? If I store fill time, I can compute the number of “days held”, but that would include weekends and other days the markets aren't open. Is there a good way to calculate bars held? To keep things simple, I'm just using daily resolution in my algorithms, so bars held would be the same as a count of the number of days markets have been open since the fill date.
Thanks,
Chetan
To unlock posting to the community forums please complete at least 30% of Boot Camp.
You can continue your Boot Camp training progress from the terminal. We hope to see you in the community soon!