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

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

There is a class AtiServer with private static method ProcessOif

perhaps you can call it with reflection (I didn't test it)

using System.Reflection;
MethodInfo miProcessOif = typeof(NinjaTrader.Server.AtiServer).GetMethod( "ProcessOif", BindingFlags.Instance | BindingFlags.NonPublic );
if( miProcessOif != null )
{
object[] args = { commandStringOIF };
miProcessOif.Invoke( null, args );
}

Reply With Quote
The following user says Thank You to decs0057 for this post:
 
  #22 (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
There is a class AtiServer with private static method ProcessOif

perhaps you can call it with reflection (I didn't test it)

using System.Reflection;
MethodInfo miProcessOif = typeof(NinjaTrader.Server.AtiServer).GetMethod( "ProcessOif", BindingFlags.Instance | BindingFlags.NonPublic );
if( miProcessOif != null )
{
object[] args = { commandStringOIF };
miProcessOif.Invoke( null, args );
}

That looks interesting....an OIF without writing the file to the hard drive? That would be perfect.

I'm going to take a rest from this for a bit, I'll let you know how it works...

Thank you!

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


it works, check ClickTrader update

Attached Files
Register to download File Type: cs ClickTrade.cs (12.5 KB, 84 views)
Reply With Quote
The following 2 users say Thank You to decs0057 for this post:
 
  #24 (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

wunderbar!


decs0057 View Post
it works, check ClickTrader update

Can't wait to try it!!!

Will have time this weekend....

THANK YOU....I don't have the knowledge yet to code at that level...

When I post the indicator I'll put your name/handle on it also, if it is OK?

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

succees!

Ok !!

It will submit an OIF order directly without writing the file to disk.

Only thing left is to click the ChartTrader Close button from code.

(not sure how to do that but should not be hard)

after that I will post the code to futures.io (formerly BMT) where others customize it to their own needs

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

you can call Button.PerformClick-Method

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

perfect

I was expecting that to be more complicated... :-)

Ok, will post next week sometime...it will just be a template that has the basic functions mentioned

other coders can customize to their needs

Reply With Quote
 
  #28 (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 again.... :-)

This is not working...

System.Windows.Forms.Button CloseButton;

CloseButton = (Button)ChartControl.Controls["pnlChartTrader"].Controls["ctrChartTraderControl"].Controls["btnClose"];

CloseButton.PerformClick();

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

solution

the code in this indicator to push the CLOSE button works

https://futures.io/elite-circle/25431-vvminitradepanel.html

THANK YOU!


I have done initial testing against a live account with success and should be able to post this indicator after more testing.

PerformClick seems to not do anything, even though the button is referenced correctly.

Reply With Quote
The following user says Thank You to vantojo for this post:
 
  #30 (permalink)
Elite Member
San Diego, Calif. USA
 
Futures Experience: Intermediate
Platform: ninja trader
Favorite Futures: EUR/USD
 
Posts: 33 since Oct 2011
Thanks: 8 given, 19 received

ClickTrade.cs


Is that a Ninjascript? Can it be used for trading? If so, how?

Thanks
T

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 07:05 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.15 seconds with 20 queries on phoenix via your IP 54.196.182.102