Hi,
I want to code an exit based on number of days since entry, it should only count market days or at least not include weekends. Looking forward for some input on best/easy way to do this?
Example:
If Entry is on Thursday, with a five days exit. it should exit on next thursday.
It should work for intradays, i.e. I cannot count bars, I tried with several data streams but did not work.
I tried the "date" - "dayssinceentry" functions but found out it include weekends. e.g. it could exit already after three market days.
Cheers,
Jimmy
How to Count market days since entry?
- TJ
- Posts: 7742
- Joined: 29 Aug 2006
- Location: Global Citizen
- Has thanked: 1033 times
- Been thanked: 2222 times