Jump to content
Medved Trader Forums

Restricting Paintbars in Market Session Only


Recommended Posts

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.

Link to comment
Share on other sites

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.

  • Like 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...