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

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 SantoshXX, Today, 03:09 AM
        0 responses
        11 views
        0 likes
        Last Post SantoshXX  
        Started by DanielTynera, Today, 01:14 AM
        0 responses
        2 views
        0 likes
        Last Post DanielTynera  
        Started by yertle, 04-18-2024, 08:38 AM
        9 responses
        41 views
        0 likes
        Last Post yertle
        by yertle
         
        Started by techgetgame, Yesterday, 11:42 PM
        0 responses
        12 views
        0 likes
        Last Post techgetgame  
        Started by sephichapdson, Yesterday, 11:36 PM
        0 responses
        2 views
        0 likes
        Last Post sephichapdson  
        Working...
        X