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


External DLL from Ninjatrader
Updated: Views / Replies:11,331 / 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

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

External DLL from Ninjatrader

Hello,

I'm looking for an example on how to call an external dll from Ninjatrader.
Have been looking on this and ninjatraders forum but haven't found an example.

Have been developing indicators in vb.net for some time now and made my own
programs. But using ninjatrader as a front end seems a better path.

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.

Really hope to get some hints and directions to get me started.

Ernesto

Reply With Quote
 
  #2 (permalink)
Quick Summary
Quick Summary Post

Quick Summary is created and edited by users like you... Add FAQ's, Links and other Relevant Information by clicking the edit button in the lower right hand corner of this message.

 
  #3 (permalink)
Elite Member
Calcutta, India
 
Futures Experience: Intermediate
Platform: ArthaChitra
 
Posts: 278 since Jun 2009
Thanks: 161 given, 259 received



ehlaban View Post
Hello,

I'm looking for an example on how to call an external dll from Ninjatrader.
Have been looking on this and ninjatraders forum but haven't found an example.

Have been developing indicators in vb.net for some time now and made my own
programs. But using ninjatrader as a front end seems a better path.

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.

Really hope to get some hints and directions to get me started.

Ernesto

its pretty easy. copy the dll to the <My Documents>\NinjaTrader 7\bin\Custom\ folder (make sure nt is closed when you do so). make a declaration of the same in the ninjascript. create object and you are set.

here is an example which can help you.

MODS: the link goes to my site. pls edit/remove the same if you find the same as spam.

Reply With Quote
The following 4 users say Thank You to bukkan for this post:
 
  #4 (permalink)
Elite Member
Frankfurt
 
Futures Experience: Intermediate
Platform: NinjaTrader
Favorite Futures: FGBL 6E B4
 
max-td's Avatar
 
Posts: 1,754 since Jun 2009
Thanks: 2,309 given, 917 received

are you selling something on your page bukkan ?
if its not commercial a link is no problem in our view.

-

max-td
Reply With Quote
The following user says Thank You to max-td for this post:
 
  #5 (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,

But my problem is in the part
" ... make a declaration of the same in the ninjascript. create object and you are set ..."

I've read something about dllimport etc but haven't seen an implementation in NT.
Just looking for a simple code example to go my way.

Ernesto

Reply With Quote
 
  #6 (permalink)
Elite Member
Calcutta, India
 
Futures Experience: Intermediate
Platform: ArthaChitra
 
Posts: 278 since Jun 2009
Thanks: 161 given, 259 received


max-td View Post
are you selling something on your page bukkan ?
if its not commercial a link is no problem in our view.

-

theres nothing in the site which $$ except for the google ads which helps me to pay for the host etc

Reply With Quote
The following user says Thank You to bukkan for this post:
 
  #7 (permalink)
Elite Member
Calcutta, India
 
Futures Experience: Intermediate
Platform: ArthaChitra
 
Posts: 278 since Jun 2009
Thanks: 161 given, 259 received


ehlaban View Post
Thanks Bukkan,

But my problem is in the part
" ... make a declaration of the same in the ninjascript. create object and you are set ..."

I've read something about dllimport etc but haven't seen an implementation in NT.
Just looking for a simple code example to go my way.

Ernesto

on the first run intellisense will not show the same. open any custom indicator/strategy and compile the same. restart NT and it will be fine. see the sample to get an idea.

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

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?!?

Reply With Quote
 
  #9 (permalink)
Elite Member
Calcutta, India
 
Futures Experience: Intermediate
Platform: ArthaChitra
 
Posts: 278 since Jun 2009
Thanks: 161 given, 259 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?!?

have you downloaded the codes.

you will find 2 dlls which you have to copy. there is a ninja script too

see the codes in the ninjascript

line 12,13
 
Code
using NDde.Server;
using NinjaDDE;
line 49
 
Code
server = new NinjaServer(topic);

Reply With Quote
The following user says Thank You to bukkan for this post:
 
  #10 (permalink)
Elite Member
Calcutta, India
 
Futures Experience: Intermediate
Platform: ArthaChitra
 
Posts: 278 since Jun 2009
Thanks: 161 given, 259 received


for your perusal

Attached Files
Register to download File Type: zip NinjaTraderDDE.zip (134.8 KB, 304 views)
Reply With Quote
The following 2 users say Thank You to bukkan 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 10:42 PM.

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.12 seconds with 20 queries on phoenix via your IP 54.90.207.75