Both the CandleOutlineBrush and CandleOutlineBrushes[0] are always null when they are set in a different indicator.
I have attached two sample indicators to demonstrate this issue.
GSetBarColors - sets the CandleOutlineBrushes[0] to gold (and it works).
GDetectBarColors - gets the brush from CandleOutlineBrushes[0] but is is always null.
Put both indicators on the chart and there should be output in the OutputWindow if it works.
What is the issue here? Isn't there really on one CandleOutlineBrushes series shared between all indicators on the chart? If so, why can't one indicator see what the other indicator has set it to?
If there is some other approach to do this, please let me know.
BTW, The reason this is needed is because a third party indicator I use is setting the CandleOutlineBrushes and I would like to to know what Brush exactly.
Gary
Comment