Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Sample Code

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

    Sample Code

    Is there any sample code that demonstrates the use of a 3rd party or independently developed indicator?

    TIA

    #2
    Hello dmking,

    The user app share would be a good location for this type of request. There are many custom indicators listed there, and the straetgy section specifically would be a good location to find sample code of calling custom indicators.

    One example can be found in the strategy section, this strategy has a few custom indicators that come with it and are used from its code. Here is a public link: https://ninjatraderecosystem.com/use...kout-strategy/

    Nearly all indicators use the same syntax to call them, there are generally two overloads:

    Code:
    IndicatorName(Any,Parameters,It,Needs)
    IndicatorName(Series, Any,Parameters,It,Needs)
    Then plots or other methods can be called from the instance:

    Code:
    IndicatorName(Any,Parameters,It,Needs)[0] // default plot
    IndicatorName(Any,Parameters,It,Needs).SomePlot[0] //specific plot
    IndicatorName(Any,Parameters,It,Needs).CustomMethod() //custom method, see zigzag for an example

    The Series overload depends if the script was programmed to accept a series.



    I look forward to being of further assistance.

    Comment

    Latest Posts

    Collapse

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