Conditions for Marking a Bar / Marking Todays Bars

Hello. I like to mark all bars of the current day (today). I did not found 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.


  • This is one piece of code we do not have - that of current day.
    This is the work around.


    This mark just today on any intraday chart.

  • Thank You. The solution is working fine.
  • The code seems to work with intraday time based charts and not with price based charts like range charts. Is there a way to make the code work for a range chart?
  • Unfortunately there is not a way to just mark current day on a sub-minute exotic chart type.
  • Hello, such a nice forum!!! Thanks for providing wonderful information. I really appreciate your forum.PLease visit our link Comex Tips.
Sign In or Register to comment.