Jack, There is no built in way to do that, though you can probably do a custom PaintBar set to Shade Full Background based on Bar Time. I frankly don't remember the format for Bar Time field for use in paintbars though . I will add that to the feature request for MT though.
Try the following: 1 - Add a PB as: if Bar Time>=16:00 and Bar Time<09:30 set color to [your preferred] 2 - Apply it to your chart using 'Show on full background'.
Thanks for the suggestion. I couldn't get that to work, but I have no experience with paintbars never having used them before. I'll work on it some more. I tried using 16:00 and 09:30, which it truncated to 16:0 and 9:30, as well as 1600 and 0930, which it truncated to 930, so I might be entering the time in an incorrect format.
Almost.... I remembered that time handling was funky.. Just didn't remember what the correct format was. The Bar Time value is a decimal. 0.5 is noon. So assuming that you want to consider everything prior to 9:30 and after 4:00 extended hours, the two rules in the Paintbar would be: if Bar Time<0.39583 set color to Gray and stop if Bar Time>0.66667 set color to Gray and stop and of course change the color from Gray to whatever you want. The numbers in the rule come from: 9.5 / 24 = 0.39583 16/24 = 0.66667
Jerry, I had no clue on what's the Bar Time format when I made a "First hour range" PB with only one rule: if Bar Time>=9:30 and Bar Time<10:30 set color to [color code] and it's been working beautifully