Interact with NinjaTrader through c# windows form - NinjaTrader | futures io social day trading
futures io futures trading


Interact with NinjaTrader through c# windows form
Updated: Views / Replies:274 / 2
Created: by Aziz 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
 

Interact with NinjaTrader through c# windows form

  #1 (permalink)
Trading Apprentice
delhi india
 
Futures Experience: None
Platform: ninjatrader
Favorite Futures: Currency
 
Posts: 11 since Aug 2017
Thanks: 2 given, 1 received

Interact with NinjaTrader through c# windows form

Are there any sample code which suggests how to interact with ninja trader i.e. without ninja script. I have a windows form and I want to send the bid/ask values to ninja trader in c# form. I have added the NinjaTrader.Client.dll in my project so what would be the next step?

Reply With Quote
 
  #2 (permalink)
Elite Member
Omer עומר / Israel י
 
Futures Experience: Master
Platform: NinjaTrader, Proprietary,
Broker/Data: Ninjabrokerage/IQfeed + Synthetic datafeed
Favorite Futures: 6A, 6B, 6C, 6E, 6J, 6S, ES, NQ, YM, AEX, CL, NG, ZB, ZN, ZC, ZS, GC
 
rleplae's Avatar
 
Posts: 2,468 since Sep 2013
Thanks: 1,695 given, 3,661 received
Forum Reputation: Legendary


Aziz View Post
Are there any sample code which suggests how to interact with ninja trader i.e. without ninja script. I have a windows form and I want to send the bid/ask values to ninja trader in c# form. I have added the NinjaTrader.Client.dll in my project so what would be the next step?

You will have to call the functions :

int Connected(int showMessage)

Returns a value of zero if the DLL has established a connection to the NinjaTrader server (application) and if the ATI is currently enabled or, -1 if it is disconnected. Calling any function in the DLL will automatically initiate a connection to the server. The parameter showMessage indicates if a message box is displayed in case the connection cannot be established. A value of 1 = show message box, any other value = don't show message box.


int Ask(string instrument, double price, int size)
Sets the ask price and size for the specified instrument. A return value of 0 indicates success and -1 indicates an error.


int Bid(string instrument, double price, int size)
Sets the bid price and size for the specified instrument. A return value of 0 indicates success and -1 indicates an error.

int AskPlayback(string instrument, double price, int size, string timestamp)
Sets the ask price and size for the specified instrument for use when synchronizing NinjaTrader playback with an external application playback. A return value of 0 indicates success and -1 indicates an error. The timestamp parameter format is "yyyyMMddhhmmss".

int BidPlayback(string instrument, double price, int size, string timestamp)
Sets the bid price and size for the specified instrument for use when synchronizing NinjaTrader playback with an external application playback. A return value of 0 indicates success and -1 indicates an error. The timestamp parameter format is "yyyyMMddhhmmss".

and at the end of the process

int TearDown()
Disconnects the DLL from the NinjaTrader server. A return value of 0 indicates success and -1 indicates an error.



Don't forget to enable ATI interface inside NT

good luck !

Reply With Quote
The following user says Thank You to rleplae for this post:
 
  #3 (permalink)
Trading for Fun
chennai/india
 
Futures Experience: Intermediate
Platform: Ninja Trader
Favorite Futures: oil
 
Posts: 107 since Sep 2015
Thanks: 93 given, 120 received



Aziz View Post
Are there any sample code which suggests how to interact with ninja trader i.e. without ninja script. I have a windows form and I want to send the bid/ask values to ninja trader in c# form. I have added the NinjaTrader.Client.dll in my project so what would be the next step?

Hello Aziz,
Happy to see u here from India. As a NT User, very eager to learn automate our trade thru NT, If Possible Pls Share the Possibilities, BTW I 'm trying to trade on Indian MCX Segment, and no idea about programming knowledge of NT and Any API. But active PI Chart from concern broker.

Reply With Quote

Reply



futures io > > > > Interact with NinjaTrader through c# windows form

Thread Tools Search this Thread
Search this Thread:

Advanced Search



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

Linda Bradford Raschke: Reading The Tape

Elite only

Adam Grimes: TBA

Elite only

NinjaTrader: TBA

January

Ran Aroussi: TBA

Elite only
     

Similar Threads
Thread Thread Starter Forum Replies Last Post
Ninjatrader 6.5 / 7 and Windows 7 Service Pack 1 nirajkrishna NinjaTrader 26 November 20th, 2015 08:38 PM
On Update() method and Windows Form Speculari NinjaTrader Programming 5 August 5th, 2015 09:04 PM
Windows 8 and NinjaTrader Big Mike NinjaTrader 54 January 24th, 2014 10:48 PM
NinjaTrader Metro Tile for Windows 8 spiderbyte87 The Elite Circle 1 January 13th, 2014 12:04 AM
windows messages to ninjatrader strategy junkone NinjaTrader 4 July 31st, 2012 08:53 PM


All times are GMT -4. The time now is 01:32 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-11 in 0.24 seconds with 25 queries on phoenix via your IP 54.145.16.43