Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Indicator as a prameter for another indicator

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

    Indicator as a prameter for another indicator

    Hi,

    I am wondering if it is possible to specify an indicator in the parameters list of another indicator?

    I case this isn't clear on what I want to do, here is a scenario. I have an indicator/strategy and I want to give go/no go priority to another indicator. I might like to try this a lot, so parameters rather than hard coding might be desirable.

    So, strategy/indicator would be saying buy/sell, but go/no go relies in the value of a user specified indicator (and probably associated values in another parameter) that will have the final say.

    I hope this makes sense.

    If this is possible and you are aware of any code samples, I'd appreciate a pointer.

    Thanks.

    #2
    Hell pjsmith,

    Thanks for opening the thread.

    It is possible to create an enum as an input parameter so you can select specify an indicator to use from your enum. The logic would have to branch out for each enum selected/indicator to use.

    We have a publicly available sample that demonstrates this within our Reference Samples section of the forums. I will provide a link below.

    Creating a user-defined parameter type (enum) - https://ninjatrader.com/support/foru...ead.php?t=3420

    If you have any questions on the sample, please let me know.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    561 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    325 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    101 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    547 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    547 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X