I'm working on an indicator that plots a vertical line across all panels given a user input time. I also need a secondary data series (1-Minute) to play a sound once at this time.
* Without the secondary data series, the indicator renders correctly, but the sound alert well not play at the correct time.
* With the secondary data series, the indicator renders incorrectly, but the sound alert plays at the correct time.
It's a catch 22.
Question: Is there any way within OnRender to distinguish one data series from another?
When I use ChartBars.FromIndex / ChartBars.ToIndex for the for loop, I'm seeing both primary and secondary data series coming through based on the print statement placed inside the loop. I'm thinking that if there's a way to tell what data series is coming through, I can work around this issue.
Any help or tips are very much appreciate.
Thanks,
gbrad
Comment