I am a bit puzzled on how to correctly code a reference to indicator plots.
I have done this successfully for some indicators I created however now I have an instance when the plots are not available / cannot be referenced somehow,
The below code works fine and the plots "BuyPlot" and "SellPlot" are available when coding (with wrench icon)
var _refbuy = GomiSignals(1,1,true,true).BuyPlot[0];
var _refsell = GomiSignals(1,1,true,true).SellPlot[0];
Now I have another indicator called GomiBiasOcillator which has2 plots with below namens.
AddPlot(Brushes.Green, "Bulls");
AddPlot(Brushes.Red, "Bears");
If I try to reference the plots like below, the plot is not available and I get an error CS1061 that there is no definition for "Bulls".
var _bulls = GomiBiasOcillator().Bulls[0]
What could be the difference between the successfull reference and the error I am getting now?
Hope someone can help me out.
Comment