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 argusthome, 03-08-2026, 10:06 AM
    0 responses
    116 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    61 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    40 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Started by TheRealMorford, 03-05-2026, 06:15 PM
    0 responses
    43 views
    0 likes
    Last Post TheRealMorford  
    Started by Mindset, 02-28-2026, 06:16 AM
    0 responses
    82 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Working...
    X