Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Referencing Indicator plots

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Referencing Indicator plots

    Good day,

    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.


    #2
    Hello Diepy,

    It will need a public series that returns the plot series.

    [XmlIgnore()]
    public Series<double> Bulls
    { get { return Values[0]; } }
    Chelsea B.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by CaptainJack, 05-29-2026, 05:09 AM
    0 responses
    231 views
    0 likes
    Last Post CaptainJack  
    Started by CaptainJack, 05-29-2026, 12:02 AM
    0 responses
    149 views
    0 likes
    Last Post CaptainJack  
    Started by charlesugo_1, 05-26-2026, 05:03 PM
    0 responses
    161 views
    1 like
    Last Post charlesugo_1  
    Started by DannyP96, 05-18-2026, 02:38 PM
    1 response
    243 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 05-11-2026, 05:56 AM
    0 responses
    198 views
    0 likes
    Last Post CarlTrading  
    Working...
    X