External DLL from Ninjatrader - NinjaTrader Programming | futures io social day trading
futures io futures trading


External DLL from Ninjatrader
Updated: Views / Replies:11,333 / 11
Created: by ehlaban Attachments:1

Welcome to futures io.

(If you already have an account, login at the top of the page)

futures io is the largest futures trading community on the planet, with over 90,000 members. At futures io, our goal has always been and always will be to create a friendly, positive, forward-thinking community where members can openly share and discuss everything the world of trading has to offer. The community is one of the friendliest you will find on any subject, with members going out of their way to help others. Some of the primary differences between futures io and other trading sites revolve around the standards of our community. Those standards include a code of conduct for our members, as well as extremely high standards that govern which partners we do business with, and which products or services we recommend to our members.

At futures io, our focus is on quality education. No hype, gimmicks, or secret sauce. The truth is: trading is hard. To succeed, you need to surround yourself with the right support system, educational content, and trading mentors Ė all of which you can find on futures io, utilizing our social trading environment.

With futures io, you can find honest trading reviews on brokers, trading rooms, indicator packages, trading strategies, and much more. Our trading review process is highly moderated to ensure that only genuine users are allowed, so you donít need to worry about fake reviews.

We are fundamentally different than most other trading sites:
  • We are here to help. Just let us know what you need.
  • We work extremely hard to keep things positive in our community.
  • We do not tolerate rude behavior, trolling, or vendors advertising in posts.
  • We firmly believe in and encourage sharing. The holy grail is within you, we can help you find it.
  • We expect our members to participate and become a part of the community. Help yourself by helping others.

You'll need to register in order to view the content of the threads and start contributing to our community.  It's free and simple.

-- Big Mike, Site Administrator

Reply
 1  
 
Thread Tools Search this Thread
 

External DLL from Ninjatrader

  #11 (permalink)
Elite Member
Netherlands
 
Futures Experience: Advanced
Platform: Ensign, Multicharts
Favorite Futures: SP500
 
Posts: 95 since Nov 2009
Thanks: 66 given, 56 received

Thanks Bukkan,

I got everything working now and called my homemade dll's from NT.
Wouldn't be possible without your help.

Reply With Quote
The following user says Thank You to ehlaban for this post:
 
  #12 (permalink)
Elite Member
East Coast
 
Futures Experience: Beginner
Platform: Ninja
Favorite Futures: ES, NQ
 
Posts: 125 since Apr 2010
Thanks: 55 given, 81 received


ehlaban View Post
Hi,

I'm afraid i don't understand what you are writing.

On your page i see info about DDE and no scripts . I'm using chrome.

But i'm not looking for DDE or DDE libraries. Simply the code on how to call
an external dll from NinjaTrader 7.

Lets say i have an dll that does one thing adding two numbers. MyCalc.dll

The function is AdUp(nbrfirst as double, nbrSecond as double) as double

How can i use the function from the dll in ninjatrader.


It could be you answered my question perfectly but i'm not able to see how?!?



I figured out how to import an old .dll from another platform.

I copied the .dll directly into the \program files\NT folder - haven't tried the MyDocs\Custom location.

1) You may have to add any relevant declarations in the "Using declarations" region if you need some functions not included by default. In my case I needed to add "using System.Runtime.InteropServices;"
2) Under the "public class" region, you will have to add the .dll, and its parameters:
e.g.

public class MyIndicator : Indicator
{
[DllImport("MyExternal.dll")]
public static extern double MyX_SetDouble(double param1, double param2);

#region Variables
.... your variables, etc
#endregion



The rest of your stuff...

}

Hope this helps.


Last edited by Tarkus11; June 13th, 2010 at 01:11 PM.
Reply With Quote
The following 4 users say Thank You to Tarkus11 for this post:

Reply



futures io > > > > > External DLL from Ninjatrader

Thread Tools Search this Thread
Search this Thread:

Advanced Search



Upcoming Webinars and Events (4:30PM ET unless noted)

Jigsaw Trading: TBA

Elite only

FuturesTrader71: TBA

Elite only

NinjaTrader: TBA

Jan 18

RandBots: TBA

Jan 23

GFF Brokers & CME Group: Futures & Bitcoin

Elite only

Adam Grimes: TBA

Elite only

Ran Aroussi: TBA

Elite only
     

Similar Threads
Thread Thread Starter Forum Replies Last Post
Calling external DLL from EasyLanguage Big Mike EasyLanguage Programming 11 August 6th, 2015 11:03 AM
additional references dll timmyb NinjaTrader Programming 34 May 4th, 2012 12:38 AM
External Data Feed market replay software PeterOhlson NinjaTrader 14 July 31st, 2011 05:12 PM


All times are GMT -4. The time now is 12:48 AM.

Copyright © 2017 by futures io, s.a., Av Ricardo J. Alfaro, Century Tower, Panama, +507 833-9432, info@futures.io
All information is for educational use only and is not investment advice.
There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
no new posts
Page generated 2017-12-14 in 0.08 seconds with 20 queries on phoenix via your IP 54.221.93.187