Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Calling 3rd party DLL

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

    Calling 3rd party DLL

    Hi

    I want to make a call a couple of functions in a 3rd party dll .. the documentation I have says it should be imported as follows:

    [DllImport("FXBlueQuickChannel.dll",CharSet=CharSet .Unicode)] public static extern IntPtr QC_StartSenderW(string ChannelName);

    [DllImport("FXBlueQuickChannel.dll",CharSet=CharSet .Unicode)] public static extern int QC_SendMessageW(IntPtr ChannelHandle, string Msg, int Flags);

    Could you please outline the steps to set this up inside an indicator

    Many Thanks

    #2
    Hello murfinp,

    Thank you for your post.

    You would not need to add the dll in that manner. You could just place the .dll file under Documents\NinjaTrader 7\bin\Custom and then add the reference by going to Tools > Edit NinjaScript > indicator > select any indicator > when the NinjaScript Editor opens please right click > select References > Add > select your .dll > Open > close the References window > right click > Compile.

    Then in the script that uses the file make sure to add a using statement to the top of the file.

    Comment


      #3
      Hi ... Sorry I've got a bit stuck ... I've put the dll in the correct place (see screenshot) but when I start to "using" ninja does not seem to see it (see screenshot 2)?

      Any ideas ?

      Thanks
      Attached Files

      Comment


        #4
        Hello murfinp,

        Thank you for your response.

        Even if the intelliprompt does not see it, try typing it out and compiling.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by CarlTrading, 03-31-2026, 09:41 PM
        1 response
        149 views
        1 like
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 04-01-2026, 02:41 AM
        0 responses
        85 views
        1 like
        Last Post CarlTrading  
        Started by CaptainJack, 03-31-2026, 11:44 PM
        0 responses
        129 views
        2 likes
        Last Post CaptainJack  
        Started by CarlTrading, 03-30-2026, 11:51 AM
        0 responses
        125 views
        1 like
        Last Post CarlTrading  
        Started by CarlTrading, 03-30-2026, 11:48 AM
        0 responses
        102 views
        0 likes
        Last Post CarlTrading  
        Working...
        X