Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Referring to an indicator that has a base class

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

    Referring to an indicator that has a base class

    Hi

    I have a question concerning reference to an indicator from a strategy.

    My strategy needs to refer an indicator that implement another indicator.

    Ex : Strat == strategy
    Ind1 == first indicator
    Ind2 == second indicator

    Ind1 : Ind2


    In my strategy I add the indicator I want to refer to :

    Add(Ind1(...));

    The problem is that Ind2 which is the base indicator has properties that I need to set.

    How could I solve the problem ?

    Thanks

    #2
    blar58,

    I am happy to assist you.

    Just to clarify, is this an indicator of an indicator, i.e. are you using an indicator as the input data series for a separate indicator?

    If Indicator 1 calls Indicator 2 but it is not the input data series, then Indicator 1 would have to have user defined inputs that are passed to the second indicator in order for you to change them from the first one.

    Please let me know if I can assist further.
    Adam P.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by charlesugo_1, 05-26-2026, 05:03 PM
    0 responses
    59 views
    0 likes
    Last Post charlesugo_1  
    Started by DannyP96, 05-18-2026, 02:38 PM
    1 response
    143 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 05-11-2026, 05:56 AM
    0 responses
    161 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 05-10-2026, 08:12 PM
    0 responses
    97 views
    0 likes
    Last Post CarlTrading  
    Started by Hwop38, 05-04-2026, 07:02 PM
    0 responses
    283 views
    0 likes
    Last Post Hwop38
    by Hwop38
     
    Working...
    X