I created a "session hours" indicator that reflects both the RTH hours & ETH hours by distinquishing both sessions with 2 different colors on the same chart. So, for example, for CL the chart's session template is defines as "Default 24x7". If the user inputs - via the indicator - gray then the ETH bars will be colored gray, while RTH bars' default to black as defined in the dataseries dialogue box. So, all CL bars that fall outside of the RTH timeslot of 9am - 1430pm will be gray colored, the rest of the RTH bars will be black.
The problem is when I apply this indicator to instruments that contain different RTH time brackets, such as the ES - 930am - 1615pm because now the user has to enter this different time bracket into the indicator's parameter list.
I want to be able to let the indicator handle that part so that I never have to change the indicator's time slot parameter for that instrument.
Is there a way within my indicator to access the instrument's RTH while keeping the chart's session template defined as "Default 24x7"?
I'm still on NT7, not NT8.
thanks for your support.
Comment