Is there a way to access the ColorSeries from the indicator? How can I expose this information for use within the Strategy?
Thanks,
Jeff
This is the Initialize section of the Strategy.
protected override void Initialize() { Add(SimplePaintBar()); }
protected override void OnBarUpdate() { if(CurrentBar < BarsRequired) return; if(High[0] > High[1] && Low[0] > Low[1]) { BarColorSeries[0] = Color.Blue; BarColorSeries.Set(0,Color.Blue); } else if(High[0] < High[1] && Low[0] < Low[1]) { BarColorSeries[0] = Color.Red; BarColorSeries.Set(0,Color.Red); } else { BarColorSeries[0] =Color.Gray; BarColorSeries.Set(0,Color.Gray); } }
Comment