Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Calling a custom indicator from multiple indicators

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

    Calling a custom indicator from multiple indicators

    Hi,
    I have a custom indicator (indicator A) which calculates a number of parameters and exposes them to other indicators for use.
    Every time indicator A is accessed by another indicator a new instance of indicator A is created.
    is there a way to only create 1 instance of indicator A no matter how many indicators accessing it?​

    #2
    Hello Kevint40,

    Thank you for your post.

    Unfortunately there is no supported concept to do this in NinjaScript. Each time you call the indicator from another indicator, it will be accessing it's own instance of the indicator.

    If you wanted to share information across several indicators you could create a static class, although this is more a C# concept than it is related to NinjaScript so we don't have much documentation for this.

    Comment

    Latest Posts

    Collapse

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