Say i have a daily strategy and want to buy every month on the 10th or the next trading day in case the 10th is a holiday/weekend. In the datafeed of the security the non-tradingday simply do not exist. So if the 10th is for example a sunday the datafeed jumps from friday 8th directly to monday 11th.
It’s the Keith algorithm. So if the D value is a Sunday for the 10th day of the month you look at, then you know you have to adapt the strategy to trade the next day.. Hope I’m clear 🙂
To help us continually offer you the best experience on ProRealCode, we use cookies. By clicking on "Continue" you are agreeing to our use of them. You can also check our "privacy policy" page for more information.Continue