External DLL from Ninjatrader (Page 2) - NinjaTrader Programming | futures.io
futures.io futures trading

Go Back   futures.io

> Futures Trading, News, Charts and Platforms > Platforms and Indicators > NinjaTrader > NinjaTrader Programming

External DLL from Ninjatrader
Started:June 9th, 2010 (06:17 AM) by ehlaban Views / Replies:10,068 / 11
Last Reply:June 13th, 2010 (11:42 AM) Attachments:1

Welcome to futures.io.

Welcome, Guest!

This forum was established to help traders (especially futures traders) by openly sharing indicators, strategies, methods, trading journals and discussing the psychology of trading.

We are fundamentally different than most other trading forums:
  • We work extremely hard to keep things positive on our forums.
  • We do not tolerate rude behavior, trolling, or vendor advertising in posts.
  • We firmly believe in openness and encourage sharing. The holy grail is within you, it is not something tangible you can download.
  • 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, and we will never resell your private information.

-- Big Mike

Thread Tools Search this Thread

External DLL from Ninjatrader

Old June 13th, 2010, 08:44 AM   #11 (permalink)
Elite Member
Futures Experience: Advanced
Platform: Ensign, Multicharts
Favorite Futures: SP500
Posts: 94 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:

Old June 13th, 2010, 11:42 AM   #12 (permalink)
Elite Member
East Coast
Futures Experience: Beginner
Platform: Ninja
Favorite Futures: ES, NQ
Posts: 125 since Apr 2010
Thanks: 55 given, 80 received

ehlaban View Post

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:

public class MyIndicator : Indicator
public static extern double MyX_SetDouble(double param1, double param2);

#region Variables
.... your variables, etc

The rest of your stuff...


Hope this helps.

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


futures.io > Futures Trading, News, Charts and Platforms > Platforms and Indicators > NinjaTrader > NinjaTrader Programming > External DLL from Ninjatrader

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

NinjaTrader 8: Programming Profitable Trading Edges w/Scott Hodson

Elite only

Anthony Drager: Executing on Intermarket Correlations & Order Flow, Part 2

Elite only

Adam Grimes: Five critically important keys to professional trading

Elite only

Machine Learning Concepts w/FIO member NJAMC

Elite only

MarketDelta Cloud Platform: Announcing new mobile features

Dec 1

NinjaTrader 8: Features and Enhancements

Dec 6

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

All times are GMT -4. The time now is 10:59 PM.

Copyright © 2016 by 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 2016-10-27 in 0.07 seconds with 20 queries on phoenix via your IP