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 CarlTrading, 03-31-2026, 09:41 PM
    1 response
    67 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    36 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    60 views
    1 like
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    62 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