Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Importing 3rd party indicators in strategy code

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

    Importing 3rd party indicators in strategy code

    Hello,

    I have a ninjatrader indicator, acquired recently... now I want to code an strategy so I need to first instantiate the indicator on my code to be able to EnterLong or Short based on indicator values.

    I have tried to... declare at class level the indicator I already have imported...

    private indicatorName indicatorHandler;

    To then, instantiate within State.DataLoaded

    indicatorHandler = indicatorName(param1, param2, param3, param4);

    and finally I need to obtain the internal values of the indicator, how can I get access to the internal buffers? for example this indicator has two EMA's one slow and one fast?


    #2
    Hello krizquino,

    Thank you for your post.

    The correct syntax to get this information from the indicator would depend on how the script is written, or if this information can be accessed at all. You'll need to reach out to the developer of the script for clarity on how to access these values from the indicator, especially if the code isn't open source.

    Please let us know if you have any further questions.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Mindset, 04-21-2026, 06:46 AM
    0 responses
    87 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by M4ndoo, 04-20-2026, 05:21 PM
    0 responses
    128 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by M4ndoo, 04-19-2026, 05:54 PM
    0 responses
    65 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by cmoran13, 04-16-2026, 01:02 PM
    0 responses
    117 views
    0 likes
    Last Post cmoran13  
    Started by PaulMohn, 04-10-2026, 11:11 AM
    0 responses
    67 views
    0 likes
    Last Post PaulMohn  
    Working...
    X