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,183 / 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

  #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

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

I'm trying to finish a NinjaTrader "ClickTrader" indicator, for scalpers, that lets me enter an order at the click point, with just one mouse click, and also exit any position and/or pending order when the Space key is pressed.

I have the skeleton complete and working (see attachment)

BUT I'm having trouble with the trade interface. I have used OIF files in the past but would prefer not.

I would like to use NTDirect.dll or NinjaTrader.Client.

But I am not sure how to get them linked into the indicator. I'm unable to reference NinjaTrader.Client. It appears to have conflicts with other Ninja DLLs. (So far no resolution on the NT forum)

I've looked at indicator code in futures.io (formerly BMT) that submits orders but I don't understand how either NTDirect or NinjaTrader.Client are bound to the indicator, and how to call them.

If someone can help me with this part I will put the finished indicator on futures.io (formerly BMT).

Here is what it should do:

Left Mouse + Shift = Submit a Long ATM order at the clicked price
Left Mouse + Control = Submit a Short ATM order at the clicked price
Space Bar = CLOSE ALL POSITIONS FOR THIS INSTRUMENT AND CANCEL ANY PENDING ORDERS

Well, I would like to finish this if possible.

The debugging code is all there (print statements) to verify the execution.

Thank you!!

ClickTrade.zip

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
Salt Lake City, UT
 
Futures Experience: Intermediate
Platform: NinjaTrader
Broker/Data: Dormans/Zen-fire
Favorite Futures: 6E ES YM
 
Posts: 233 since Mar 2010
Thanks: 46 given, 321 received


did you look in the elite downloads, there is at least 1 chart trader indi/application

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

Yes, I did, and I read the code but did not see how the linking is made, as mentioned.

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

in the NT Forum

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

Reply With Quote
 
  #6 (permalink)
Elite Member
Zurich, Switzerland
 
Futures Experience: None
Platform: NT
Favorite Futures: Ukulele
 
Posts: 16 since Mar 2011
Thanks: 342 given, 14 received

Hi vantojo

you can't access the ATM strategy feature (and Methods) without being in the strategy namespace - which isn't usable alongside the charttrader.
To enter orders from an indicator, you have to use the order method from the account object which is a complete unmanaged order.
You can find an example here: https://futures.io/download/vip_elite_circle/900-download.html?view
It's possible to track the order and send SL and TP orders after fills - but everthing must be done by yourself.

the other possibility is to exchange your entry information between your indicator and a background strategy running on a different chart window, by a gobal static object or some other kind of exchange function (some use files).

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

I am not a programmer, but can you not use AutoHotKeys?

https://futures.io/ninjatrader/22956-autohotkey-scripts.html

https://futures.io/ninjatrader/8373-ninjatrader-autohotkey-order-entrys.html

I use this for my order entry and exits. I adapted a couple of the scripts from the linked threads and they work fine.

You can basically write script to do anything you can do on the keyboard or mouse, including accessing ChartTrader functionality.

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


askerix View Post
Hi vantojo

you can't access the ATM strategy feature (and Methods) without being in the strategy namespace - which isn't usable alongside the charttrader.

Actually, I have a third party paid software called ClickTrader that does exactly what I'm trying to do, so there must be some way to accomplish it.

And I have used OIF files from an indicator to close positions and that works well.

My preference is to only have software I write running inside NinjaTrader, so that if a vender disappears my trading is not impacted. Also, if there is a bug I can fix it, or if I want a new feature I can do it myself without a petition to the developer.

I have read the indicator you mention, ChartTraderIndicator, but do not see how it is linking to an order engine...I only see this

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

but have no idea where the methods CreateOrder and Submit are hosted. They are not Ninja commands, and there is no entry in the declaratives, it seems.

Perhaps I need another title to this thread....

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

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

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



steve2222 View Post
I am not a programmer, but can you not use AutoHotKeys?

functionality.

I have an external hot key manager I use a lot and is great. HotKeyBoard. Very useful. I use it for all sorts of things like clearing drawn objects with one key combo, changing chart preferences, et cetera.

But it has no ability to know what the price is at a mouse click then submit an order.

I use the Ninja Hotkeys also, but I don't see that it can either know the price at a mouse click.

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

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)

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
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:28 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-11 in 0.11 seconds with 20 queries on phoenix via your IP 54.82.81.154