Calling on Advanced C# Ninja Coders -- to finish ClickTrade - NinjaTrader Programming | futures io social day trading
futures io futures trading


Calling on Advanced C# Ninja Coders -- to finish ClickTrade
Updated: Views / Replies:5,193 / 37
Created: by vantojo Attachments:2

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

Calling on Advanced C# Ninja Coders -- to finish ClickTrade

  #11 (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

ported to new thread

I started another thread more focused on the point

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

Reply With Quote
 
  #12 (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


decs0057 View Post
Order o = a.CreateOrder(Instrument,OrderAction.Buy,OrderType.Limit,TimeInForce.Day,quantity, (double)nudBuyLmtPr.Value,0,"","Buy");
o.Submit();

is undocumented NT functionality, this will send order but ATM is not attached


ok, that is a step in the right direction....but I need to submit an ATM

can this method also Close Positions and Cancel Pending Orders?

I started another thread for the NinjaTrader.Client and NTDirect interface. I believe those use the NT documented interface data structure, which allows ATM submittal.

Reply With Quote
 
  #13 (permalink)
Elite Member
Birmingham UK
 
Futures Experience: Intermediate
Platform: NinjaTrader
Broker/Data: IG/eSignal
Favorite Futures: Dax
 
ratfink's Avatar
 
Posts: 3,336 since Dec 2012
Thanks: 11,276 given, 7,090 received



vantojo View Post
ok, that is a step in the right direction....but I need to submit an ATM

I started another thread for the NinjaTrader.Client and NTDirect interface. I believe those use the NT documented interface data structure, which allows ATM submittal.

Only from another process, not from inside Ninja itself.

Travel Well
Reply With Quote
 
  #14 (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

functionality exists in third party indicator


ratfink View Post
Only from another process, not from inside Ninja itself.

There must be a way to do it, because ClickTrader here will do it, including submitting ATMs, Closing Positions, and Cancelling Pending Orders.

Tools and indicators for NinjaTrader

It is delivered as a DLL wrapped in an indicator, which can be imported into NT.

It works very well, but I need my own code so I can integrate the function into my other software. This requires customization that would be beyond the scope of the vender.

Reply With Quote
 
  #15 (permalink)
Elite Member
Birmingham UK
 
Futures Experience: Intermediate
Platform: NinjaTrader
Broker/Data: IG/eSignal
Favorite Futures: Dax
 
ratfink's Avatar
 
Posts: 3,336 since Dec 2012
Thanks: 11,276 given, 7,090 received


vantojo View Post
There must be a way to do it, because ClickTrader here will do it, including submitting ATMs, Closing Positions, and Cancelling Pending Orders.

I just mean the Ninja Client DLL is intended for use from another process.

Travel Well
Reply With Quote
 
  #16 (permalink)
Just a boy
Auckland, New Zealand
 
Futures Experience: Beginner
Platform: Sierra Chart
Broker/Data: AMP/CQG
Favorite Futures: Whatever moves in my timezone
 
Posts: 1,803 since Sep 2009
Thanks: 3,165 given, 1,372 received


vantojo View Post
Can the Ninja Hotkeys know the price at a click on Charttrader?

It is NOT Ninja Hot Keys I use.

It is an external program called' AutoHotKeys' as mentioned in the threads I linked.

I can 100% vouch that it knows what price the cross hairs are at and I then press one key (that I assigned) to place various types of orders at that price. There is no reason why you cannot substitute my press of a key with the press of a mouse button.

As I said AutoHotKey can do anything you can do with typing on a keyboard or mouse controls.

It is an external program so you can write scripts for it to do any function on your computer that you can do with a keyboard and mouse.

Reply With Quote
 
  #17 (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

reply

I already have an external keyboard macro manager.

But I am going to integrate this click trader with my other indicators. I have developed a system of interdependent indicators that talk to each other via an indexed global array structure.

So, the click trade needs to know the state of a specific indexed item in this array structure inside of compiled C#, in an indicator that is not even on the chart. The array structure is hosted in an indicator executing in a Market Analyzer.

From this variable the click trade will make decisions.

I don't know how an external macro utility would be able to do that.

If you know how, please advise me.

Also, I want to avoid the right mouse click popup that happens when one clicks on the chart.....it distracts me even if it only flashes.

Reply With Quote
 
  #18 (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

other thread

I have received preliminary replies on the new thread.

The interface for C# trade management is in NinjaTrader.Core.dll, but it is undocumented and unsupported (by NT)

NinjaTrader.Client.dll and NTDirect.dll evidently only work from external applications, as far as I can tell there is no way to link them into the Ninja architecture because there are reference conflicts. (?)

Once I am able to find the correct NinjaTrader.Core command syntax I will be able to complete the indicator

Reply With Quote
 
  #19 (permalink)
Administrator: Retired Backtester
 Vendor: speedytradingservers.com 
Rennes France
 
Futures Experience: Advanced
Platform: NinjaTrader
Broker/Data: IB/Kinetick
Favorite Futures: Futures
 
sam028's Avatar
 
Posts: 3,366 since Jun 2009
Thanks: 3,572 given, 3,982 received

If you're able to get the price, the easier is to send the information to a "sleeping" strategy which will take care of it.
You can use a named pipe (this is what I've done myself), but the easier is to use a kind of global variable (see https://futures.io/ninjatrader-programming/18967-global-variables-ninjatrader.html for a nice example).

Success requires no deodorant! (Sun Tzu)
Reply With Quote
 
  #20 (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

yes!


Hi Sam,

I'm using global variables to pass order/cancel information from an indicator to a strategy in the Strategy Tab of Control Center. It is working really good for my automated trading.

But for this I want to use a different method because it is for manual trading and I don't always have the strategies enabled.


I did find the iObject documentation of data structure and methods for submitting, managing positions, and canceling orders. It is what Ninja calls "unmanaged". (I had not been aware of these methods, though I'm sure many more advanced coders are.)

Unfortunately with these methods I see no way to submit an ATM order.

Could you give me more information on pipes, if you have time?

OIF files will work fine, I think, but I don't really like them. I am thinking of having an external DLL which simply passes a command string to NinjaTrader.Core or NTDirect....not sure if that would work.

If I don't make any progress soon I will use OIF files, though there does seem to be a slight delay to their execution. Then later try the external dll approach.

(That is, unless there is a way to use iObject methods for ATM)

Thank you for your idea.

Reply With Quote

Reply



futures io > > > > > Calling on Advanced C# Ninja Coders -- to finish ClickTrade

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
Need some help from coders mborin NinjaTrader 1 January 13th, 2014 04:38 PM
Make some money helping me finish my strategy ceramictilepro NinjaTrader Programming 1 July 7th, 2012 04:01 PM
Recommended coders peglegtrading MetaTrader 17 May 16th, 2012 02:37 PM
Obama Stresses Need to 'Finish the Job' in Afghanistan Quick Summary News and Current Events 0 May 1st, 2012 09:20 PM
Just A little help to finish !!! Sadboybh NinjaTrader Programming 9 June 19th, 2011 01:11 PM


All times are GMT -4. The time now is 11:23 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-13 in 0.12 seconds with 20 queries on phoenix via your IP 54.227.51.103