I am trying to create an indicator that doesn't appear to be doable from the Wizard.
I would like to be able to view the indicator from any time frame and it takes into account multiple time frames.
I would like to see a "Ray" created from 5 candle swings.
Below is the basic code that I started with and had planned on developing from this point. But, I figured that this would at least produce a ray on the chart (even though it was not the final product - but at least something to get me started), but it does not produce anything on the chart.
protected override void OnBarUpdate() { if (High[0] < High[2] && High[1] < High[2] && High[3] < High[2] && High[4] < High[4]) { DrawRay("",2,High[2],0,High[2],Color.Blue); } }
Thank you for your help
Comment