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 Hwop38, 05-04-2026, 07:02 PM
          0 responses
          169 views
          0 likes
          Last Post Hwop38
          by Hwop38
           
          Started by CaptainJack, 04-24-2026, 11:07 PM
          0 responses
          326 views
          0 likes
          Last Post CaptainJack  
          Started by Mindset, 04-21-2026, 06:46 AM
          0 responses
          252 views
          0 likes
          Last Post Mindset
          by Mindset
           
          Started by M4ndoo, 04-20-2026, 05:21 PM
          0 responses
          353 views
          0 likes
          Last Post M4ndoo
          by M4ndoo
           
          Started by M4ndoo, 04-19-2026, 05:54 PM
          0 responses
          180 views
          0 likes
          Last Post M4ndoo
          by M4ndoo
           
          Working...
          X