Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

The best way to invoke function in NinjaScript from external DLL

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

    The best way to invoke function in NinjaScript from external DLL

    Hi,

    Sometimes an indicator has to react on some events in external DLL.

    What would be the best way to achieve that?

    Polling model, i.e. when each NinjaScript handler like OnBarUpdate calls DLL function to refresh the state can help but a) requires insertion of polling code everywhere b) from the first glance does not look elegant.

    Could anyone share their best practice for this?

    Thank you.

    #2
    Alex, which kind of DLL would you be looking to load? .NET compatible (highest target framework 3.5) could be added into the bin > custom folder and then you would reference them directly in the NinjaScript editor (right click > References > Add). NT would load them then upon startup for use...

    Comment


      #3
      I am looking for the best practice for DLL ---> script event pumping. Not for a call of DLL function.

      Comment


        #4
        Bertrand,

        Does this really work???

        Please see my post at:
        http://www.ninjatrader.com/support/f...1&goto=newpost

        I am really disappointed that I cannot link a simple dll!

        Comment


          #5
          Hello newworldguy,

          Thank you for your post.

          Please refer to my post at the following link and continue to follow up with us there: http://www.ninjatrader.com/support/f...ad.php?t=65521

          Comment

          Latest Posts

          Collapse

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