Conditions for Marking a Bar / Marking Todays Bars
Hello. I like to mark all bars of the current day (today). I did not find a condition for that. At the moment I solve this task with the LocalDayOfWeek(@) = x formula. But this is not ideal as I need to change the "x" every day.
Thank You.
1
vote
![](https://secure.gravatar.com/avatar/cd44fd7e034ff124f74f5b44b2334c79?size=40&default=https%3A%2F%2Fassets.uvcdn.com%2Fpkg%2Fadmin%2Ficons%2Fuser_70-6bcf9e08938533adb9bac95c3e487cb2a6d4a32f890ca6fdc82e3072e0ea0368.png)
-
Adminlaurie (Admin, CQG) commented
This is one piece of code we do not have - that of current day.
This is the work around.xxx:=clip(@,-0,1);
xxx[1],ADCThis marks just today on any intraday chart.
The code seems to work with Intraday time based charts and not with price based charts like range charts.