I have added to a 24/5 hours primary dataseries in the chart another 3 min chart with RTH Equities trading hours and transparent bars. The purpose is that I want to have the VWAP for 24 hours and for RTH hours plotted in the chart (this works ok of course) and I have some calculations from each showing in the chart that should be "999" outside RTH, but it show another value.
In the indicator I have if (ToTime(Time[0]) < 093000) {"999"} else if (ToTime(Time[0]) >= 093000 && ToTime(Time[0]) <= 161500){calculations&plottings} This works OK for the primary dataseries but it does not for the dataseries in RTH, it shows me instead of 999 a value from calculation.
I was working round hours thinking I have made an error in the code, but when I apply the indicator to primary dataseries it works ok and shows "999" (const. value for outside calculation time)
What is the reason and what to add or modify please?
Thank you!
Tony
Comment