Dark Theme
Light Theme
Trading Articles
Article Categories
Article Tools
Welcome to NexusFi: the best trading community on the planet, with over 150,000 members Sign Up Now for Free
Genuine reviews from real traders, not fake reviews from stealth vendors
Quality education from leading professional traders
We are a friendly, helpful, and positive community
We do not tolerate rude behavior, trolling, or vendors advertising in posts
We are here to help, just let us know what you need
You'll need to
register in order to view the content of the threads and start contributing to our community.
It's free for basic access, or support us by becoming an Elite Member -- see if you qualify for a discount below.
-- Big Mike, Site Administrator
(If you already have an account, login at the top of the page)
Updated February 5, 2015
Top Posters
looks_one
vantojo
with 21 posts (2 thanks)
looks_two
decs0057
with 4 posts (3 thanks)
looks_3
Mindset
with 3 posts (1 thanks)
looks_4
steve2222
with 2 posts (0 thanks)
trending_up
13,087 views
thumb_up
6 thanks given
group
9 followers
forum
37 posts
attach_file
2 attachments
January 15th, 2014, 08:12 AM
Munich, Germany
Experience: Intermediate
Platform: NinjaTrader, TWS
Broker: IB, NinjaTrader Brokerage
Trading: ES,NQ,6E
Posts: 71 since Feb 2010
Thanks Given: 15
Thanks Received: 25
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 );
}
Can you help answer these questions from other members on NexusFi?
Best Threads (Most Thanked) in the last 7 days on NexusFi
January 15th, 2014, 02:54 PM
Vilcabamba, Ecuador
Experience: Intermediate
Platform: Ninja
Trading: NQ, UB
Posts: 204 since Jul 2012
decs0057
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!
January 15th, 2014, 03:48 PM
Munich, Germany
Experience: Intermediate
Platform: NinjaTrader, TWS
Broker: IB, NinjaTrader Brokerage
Trading: ES,NQ,6E
Posts: 71 since Feb 2010
Thanks Given: 15
Thanks Received: 25
it works, check ClickTrader update
Attached Files
Elite Membership required to download: ClickTrade.cs
January 16th, 2014, 10:08 AM
Vilcabamba, Ecuador
Experience: Intermediate
Platform: Ninja
Trading: NQ, UB
Posts: 204 since Jul 2012
decs0057
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?
January 17th, 2014, 01:24 PM
Vilcabamba, Ecuador
Experience: Intermediate
Platform: Ninja
Trading: NQ, UB
Posts: 204 since Jul 2012
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
January 17th, 2014, 03:25 PM
Munich, Germany
Experience: Intermediate
Platform: NinjaTrader, TWS
Broker: IB, NinjaTrader Brokerage
Trading: ES,NQ,6E
Posts: 71 since Feb 2010
Thanks Given: 15
Thanks Received: 25
January 17th, 2014, 07:09 PM
Vilcabamba, Ecuador
Experience: Intermediate
Platform: Ninja
Trading: NQ, UB
Posts: 204 since Jul 2012
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
January 17th, 2014, 08:15 PM
Vilcabamba, Ecuador
Experience: Intermediate
Platform: Ninja
Trading: NQ, UB
Posts: 204 since Jul 2012
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();
January 21st, 2014, 07:00 AM
Vilcabamba, Ecuador
Experience: Intermediate
Platform: Ninja
Trading: NQ, UB
Posts: 204 since Jul 2012
the code in this indicator to push the CLOSE button works
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.
January 30th, 2014, 02:35 AM
San Diego, Calif. USA
Experience: Intermediate
Platform: ninja trader
Broker: Ninja Trader
Trading: futures
Frequency: Daily
Duration: Minutes
Posts: 33 since Oct 2011
Thanks Given: 11
Thanks Received: 19
Is that a Ninjascript? Can it be used for trading? If so, how?
Thanks
T
Last Updated on February 5, 2015