Doug Hayman Posted July 22, 2020 Report Share Posted July 22, 2020 Hey guys, I am applying a Paintbar to MES CME micro futures ticker. I established a user-defined time frame in MT Settings to be from 9:30 AM ET to 4:15 PM ET, and have made this my Default time frame setting. Why does the following C++ code snippet not restrict my paintbar rules to be restricted to the above hours only? ...... } Thanks in advance. Quote Link to comment Share on other sites More sharing options...
Jerry Medved Posted July 22, 2020 Report Share Posted July 22, 2020 paintbars use whatever timeframe is selected on the chart. Default timeframe is not relevant if one is explicitly set, which is the case for most symbols. It is mainly used for controlling default for auto refresh sources You don't need to do custom timeframe. MT Already has one - CME GLOBEX Regular Hours. Set that as the timeframe on your chart. 1 Quote Link to comment Share on other sites More sharing options...
Doug Hayman Posted July 22, 2020 Author Report Share Posted July 22, 2020 Wow, that was easy. Was not aware that Charts have an associated time frame. I just needed a filter to examine paintbar logic during trading hours. Thanks! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.