Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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...
    BertrandNinjaTrader Customer Service

    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 frslvr, 04-11-2024, 07:26 AM
          9 responses
          123 views
          1 like
          Last Post caryc123  
          Started by rocketman7, Today, 09:41 AM
          4 responses
          15 views
          0 likes
          Last Post rocketman7  
          Started by selu72, Today, 02:01 PM
          1 response
          9 views
          0 likes
          Last Post NinjaTrader_Zachary  
          Started by WHICKED, Today, 02:02 PM
          2 responses
          16 views
          0 likes
          Last Post WHICKED
          by WHICKED
           
          Started by f.saeidi, Today, 12:14 PM
          8 responses
          21 views
          0 likes
          Last Post f.saeidi  
          Working...
          X