Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Read values from third party indicators

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

    Read values from third party indicators

    Hello guys!

    I wonder how I should read an external indicator inside my strategy, depending that this indicator is from a third party vendor that I purchased and not the ones that comes with Ninja. ¿Do I need to create a private instance of the indicator, then pass input values to it? Do you have any code example?

    Thank you!

    #2
    Hello facuevasm,

    Thanks for your post.

    I see that you mention an 'external' indicator.

    To clarify, is this an indicator that runs externally (outside) of NinjaTrader?

    Or, is this a third-party indicator that was imported into and runs in NinjaTrader?

    If this is a third-party indicator that is imported into and runs in NinjaTrader, you could create a private instance of the indicator in your strategy as you have described.

    See this help guide page for adding indicators to strategies: https://ninjatrader.com/support/help..._strategie.htm

    You could also use the Strategy Builder to create a condition based on an indicator (such as SMA) and click the 'View code' button to see the generated syntax for an example of how indicators are added to strategies.

    See this help guide page: https://ninjatrader.com/support/help...gy_builder.htm

    Let us know if we may assist further.
    <span class="name">Brandon H.</span><span class="title">NinjaTrader Customer Service</span><iframe name="sig" id="sigFrame" src="/support/forum/core/clientscript/Signature/signature.php" frameborder="0" border="0" cellspacing="0" style="border-style: none;width: 100%; height: 120px;"></iframe>

    Comment


      #3
      Originally posted by facuevasm View Post
      I wonder how I should read an external indicator inside my strategy, depending that this indicator is from a third party vendor that I purchased and not the ones that comes with Ninja.
      It really depends on the third-party vendor.

      What I mean is ...
      The indicator author has the ability to expose (or hide) information
      from the strategy author -- which means the strategy author needs
      to be aware of what methods and properties the indicator makes
      public. Documentation usually comes with third-party indicators,
      precisely to describe these kinds of programming details.

      Some vendors do a better job of this than others. I've seen the
      same indicator sold as a basic version and a more expensive pro
      version. The only difference was the pro version exposed the
      methods and properties needed by a strategy, where as the
      basic version hid these things on purpose. Not all vendors do
      this -- I'm just saying the choice is theirs to make. It is intrinsic
      to the indicator what is public and what is private, you won't be
      able to get around that.

      You really need to contact the third-party vendor and ask them
      your questions. They should be able to give you examples of
      how your strategy can interact with their indicator.

      Good luck!



      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by NullPointStrategies, Yesterday, 05:17 AM
      0 responses
      63 views
      0 likes
      Last Post NullPointStrategies  
      Started by argusthome, 03-08-2026, 10:06 AM
      0 responses
      139 views
      0 likes
      Last Post argusthome  
      Started by NabilKhattabi, 03-06-2026, 11:18 AM
      0 responses
      75 views
      0 likes
      Last Post NabilKhattabi  
      Started by Deep42, 03-06-2026, 12:28 AM
      0 responses
      45 views
      0 likes
      Last Post Deep42
      by Deep42
       
      Started by TheRealMorford, 03-05-2026, 06:15 PM
      0 responses
      50 views
      0 likes
      Last Post TheRealMorford  
      Working...
      X