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 CarlTrading, 03-31-2026, 09:41 PM
    1 response
    72 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    39 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    63 views
    2 likes
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    63 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    53 views
    0 likes
    Last Post CarlTrading  
    Working...
    X