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 sjsj2732, Yesterday, 04:31 AM
    0 responses
    30 views
    0 likes
    Last Post sjsj2732  
    Started by NullPointStrategies, 03-13-2026, 05:17 AM
    0 responses
    286 views
    0 likes
    Last Post NullPointStrategies  
    Started by argusthome, 03-08-2026, 10:06 AM
    0 responses
    282 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    132 views
    1 like
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    90 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Working...
    X