Time of Day or Day of week Bar Colour

Hi All,

I am hoping to to use the custom code for my price bars such that those bars on a intraday chart for FOREX just before market close and just after market opens are coded differently to all other bars. It’s been a whilst so apologises if there is a really simple way to do this?

Any ideas?

Thanks

Hi Steven,

Forex markets are 24 hours so not sure what you use for opens and close, but you could try DAYNUM() <> DAYNUM()[1] as a custom colour script to highlight when the days change. We also have the Time Intervals colour scheme which will have different colours for each day on an intraday chart:
Capture

Will that do what you need?