I was searching already the forum and found some similar discussions, but not exactly what I look for.
In my strategy I want to know whether the current bar is the last bar of that month.
Example: Time[0] = 29th March 2019. This would be the last bar of the month "March 2019", because 30th March is Saturday and the next bar I have in the data set is 1st of April 2019.
I guesst the problem is that one cannot look forward in the dataset. But maybe there is a function or a way to identify whether the current bar ist last bar of the month?
Comment