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 Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    591 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    343 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    103 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    556 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    553 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X