How to use NTDirect.dll or NinjaTrader.Client in NinjaScript? - NinjaTrader Programming | futures io social day trading
futures io futures trading


How to use NTDirect.dll or NinjaTrader.Client in NinjaScript?
Updated: Views / Replies:2,368 / 7
Created: by vantojo Attachments:0

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
 
Thread Tools Search this Thread
 

How to use NTDirect.dll or NinjaTrader.Client in NinjaScript?

  #1 (permalink)
Elite Member
Neuquen, Argentina
 
Futures Experience: Intermediate
Platform: Ninja
Favorite Futures: CL, TF, 6S, NG, sometimes GC
 
Posts: 195 since Jul 2012
Thanks: 25 given, 39 received

How to use NTDirect.dll or NinjaTrader.Client in NinjaScript?

It appears that Ninja intended NTDirect.dll and NinjaTrader.Client to be only external interfaces to the NT Trade Engine, and not designed to be used inside NinjaScript.

I have looked through the forums for concrete examples of how to integrate these into my indicator, but it seems that the search is not returning anything on Ninja Forum or futures.io (formerly BMT).

Can anyone point me to indicator code that is able to integrate either of these into a NT indicator?

Thank you.

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
Neuquen, Argentina
 
Futures Experience: Intermediate
Platform: Ninja
Favorite Futures: CL, TF, 6S, NG, sometimes GC
 
Posts: 195 since Jul 2012
Thanks: 25 given, 39 received

NinjaTrader.Client


my attempts so far to reference NinjaTrader.Client in Ninja Script

Conflict between NinjaTrader.Core.dll and NinjaTrader.Client.dll - NinjaTrader Support Forum

Reply With Quote
 
  #4 (permalink)
Elite Member
Munich, Germany
 
Futures Experience: Intermediate
Platform: NinjaTrader, TWS
Broker/Data: IB, NinjaTrader Brokerage
Favorite Futures: ES,NQ,6E
 
Posts: 62 since Feb 2010
Thanks: 15 given, 22 received

If you are inside NinjaTrader you don't need to use NTDirect.dll and NinjaTrader.Client. You can use undocumented functionality from NinjaTrader.Core to place/change/cancel orders (also ATM)

Reply With Quote
 
  #5 (permalink)
Elite Member
Neuquen, Argentina
 
Futures Experience: Intermediate
Platform: Ninja
Favorite Futures: CL, TF, 6S, NG, sometimes GC
 
Posts: 195 since Jul 2012
Thanks: 25 given, 39 received

OK

OK, wonderful, but where do I get the documentation so I can make the calls?

Is that on futures.io (formerly BMT) somewhere?

I need to

1) Place ATM Order
2) Cancel Pending Order
3) Close Active Positions

Have used OIF files with success but prefer another method that does not require writing a file to disk

Thank you!!

Reply With Quote
 
  #6 (permalink)
Elite Member
Neuquen, Argentina
 
Futures Experience: Intermediate
Platform: Ninja
Favorite Futures: CL, TF, 6S, NG, sometimes GC
 
Posts: 195 since Jul 2012
Thanks: 25 given, 39 received

ignorant...

Ok I'm showing my ignorance.

I found the iObject methods in the standard Ninja documentation, was not aware of them before.

Is this what what you refer to decs0057 about NinjaTrader.Core methods?

But, I do not see a way to submit an ATM though these methods...any ideas?

Worst case I can use OIF files, but I imagine they are a bit slower than calling a dll.

Another option might be for Ninja code to call another new dll whose only function was to pass the command string to NinjaTrader.Client or NTDirect.dll, which appear to have the same capability as the OIF files.

Any ideas guys?

Thank you.

Reply With Quote
 
  #7 (permalink)
Elite Member
Munich, Germany
 
Futures Experience: Intermediate
Platform: NinjaTrader, TWS
Broker/Data: IB, NinjaTrader Brokerage
Favorite Futures: ES,NQ,6E
 
Posts: 62 since Feb 2010
Thanks: 15 given, 22 received

I also found no method to directly place ATM order with NT core method.
Other idea you have to send click event to context menu item "Buy/Sell Limit" of ChartControl

To cancel pending order search for order in Account and cancel it

To close Active Positions send click event to "Close" button of chart trader

Reply With Quote
 
  #8 (permalink)
Elite Member
Neuquen, Argentina
 
Futures Experience: Intermediate
Platform: Ninja
Favorite Futures: CL, TF, 6S, NG, sometimes GC
 
Posts: 195 since Jul 2012
Thanks: 25 given, 39 received

good idea

Good idea to trigger the click event the Close button.

It will close both Pending Orders and Active Positions, and is fast with no OIF file...

It looks like NTDirect will submit ATMS, but may need to be called from outside Ninja...not sure yet.

Reply With Quote

Reply



futures io > > > > > How to use NTDirect.dll or NinjaTrader.Client in NinjaScript?

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
Webinar: NinjaTrader 8 preview (SuperDOM and NinjaScript) w/Raymond Deux Big Mike NinjaTrader 47 February 25th, 2015 12:55 PM
How to trade Futures for several client ? MyTraderAdvisor Reviews of Brokers and Data Feeds 13 December 28th, 2012 08:48 PM
How-to remove .dll files from NinjaTrader PandaWarrior NinjaTrader 7 October 1st, 2012 08:21 AM
OCOTrader orders will be in market if client down soonhwei Trading Technologies 3 May 22nd, 2012 09:08 AM
External DLL from Ninjatrader ehlaban NinjaTrader Programming 11 June 13th, 2010 12:42 PM


All times are GMT -4. The time now is 10:54 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.11 seconds with 19 queries on phoenix via your IP 54.90.207.75