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 burtoninlondon, Today, 12:38 AM
        0 responses
        4 views
        0 likes
        Last Post burtoninlondon  
        Started by AaronKoRn, Yesterday, 09:49 PM
        0 responses
        12 views
        0 likes
        Last Post AaronKoRn  
        Started by carnitron, Yesterday, 08:42 PM
        0 responses
        11 views
        0 likes
        Last Post carnitron  
        Started by strategist007, Yesterday, 07:51 PM
        0 responses
        13 views
        0 likes
        Last Post strategist007  
        Started by StockTrader88, 03-06-2021, 08:58 AM
        44 responses
        3,982 views
        3 likes
        Last Post jhudas88  
        Working...
        X