I have a simple indicator which changes the bar color on certain conditions. The indicator is my own and it works absolutley fine.
However, I want to be able to find out what the current bar color is from within a strategy and just can't find the correct way to do this.
From within my strategy I want to do something like...
MyIndicator.BarColor == Color.Blue
I'm trying to use the same structure within the indicator used for passing back/forth information to the indicator setup dialog and the strategy wizard "plot" parameter. I can see how to do this for a plot but as the bar color is just a property rather than a data series I can't see how to do it, or find any examples!!
The only other thing I can think of is to create a public variable within the indicator and access this directly, not sure this will work but that's my next step. Alternatively I could merge the indicator within the strategy which I'd rather not do.
Hope this makes sense to anyone! If you can point me in the direction of an indicator which does this sort of thing I can use as a model that woudl be great!!
Thanks
Oz
Comment