cancel last order - NinjaTrader Programming | futures io social day trading
futures io futures trading


cancel last order
Updated: Views / Replies:3,760 / 16
Created: by terratec Attachments:1

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

cancel last order

  #1 (permalink)
Elite Member
Zurich Switzerland
 
Futures Experience: Intermediate
Platform: NinjaTrader
Broker/Data: IB
Favorite Futures: ES, 6E, CL
 
Posts: 404 since Sep 2009
Thanks: 64 given, 511 received

cancel last order

I place orders with an indicator (not in a strategy).To cancel the last order I use a shortcut from the hotkey manager.

I would like to do this with a button in the toolbar that I use to clear pending stuff from the last order. Is there a way to program this command (not the button), or to simulate the shortcut (Ctrl+Alt+Escape) without pushing the keys?

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)
Site Administrator
Manta, Ecuador
 
Futures Experience: Advanced
Platform: My own custom solution
Favorite Futures: E-mini ES S&P 500
 
Big Mike's Avatar
 
Posts: 46,238 since Jun 2009
Thanks: 29,350 given, 83,218 received



terratec View Post
I place orders with an indicator (not in a strategy).To cancel the last order I use a shortcut from the hotkey manager.

I would like to do this with a button in the toolbar that I use to clear pending stuff from the last order. Is there a way to program this command (not the button), or to simulate the shortcut (Ctrl+Alt+Escape) without pushing the keys?

Sorry, but I am having some trouble following you. I haven't used Ninja in a long, long time but I am pretty sure I am right:

1. You can't place orders with an indicator, it requires a strategy. Unless you mean you are just trading (discretionary) by clicking buttons.

2. Toolbars are made up of buttons. It is not clear what you mean --- you want a button in the toolbar, but you don't want a button? huh?

You can find a few examples of toolbar code here:
https://futures.io/elite-circle/8995-custom-toolbar-button-ninjatrader-7-a.html

Here is a thread on AutoHotKey:
https://futures.io/ninjatrader/8373-ninja-autohotkey-order-entrys.html

Yes, it is possible to create a toolbar button to clear a pending order. But only if it is a strategy.

Yes, it is possible to use third party programs like AutoHotKey to issue 'commands' to NinjaTrader through keyboard shortcuts.

If I have misunderstood, please restate the question and hopefully someone else can also help you.

Mike

Due to time constraints, please do not PM me if your question can be resolved or answered on the forum.

Need help?
1) Stop changing things. No new indicators, charts, or methods. Be consistent with what is in front of you first.
2) Start a journal and post to it daily with the trades you made to show your strengths and weaknesses.
3) Set goals for yourself to reach daily. Make them about how you trade, not how much money you make.
4) Accept responsibility for your actions. Stop looking elsewhere to explain away poor performance.
5) Where to start as a trader? Watch this webinar and read this thread for hundreds of questions and answers.
6)
Help using the forum? Watch this video to learn general tips on using the site.

If you want
to support our community, become an Elite Member.

Reply With Quote
 
  #4 (permalink)
Elite Member
Bala, PA, USA
 
Futures Experience: Intermediate
Platform: NinjaTrader
Broker/Data: Mirus, IB
Favorite Futures: SPY, Oil, Euro
 
monpere's Avatar
 
Posts: 1,858 since Jul 2010
Thanks: 300 given, 3,276 received


terratec View Post
I place orders with an indicator (not in a strategy).To cancel the last order I use a shortcut from the hotkey manager.

I would like to do this with a button in the toolbar that I use to clear pending stuff from the last order. Is there a way to program this command (not the button), or to simulate the shortcut (Ctrl+Alt+Escape) without pushing the keys?

You can send hotkey short cuts using Sendkeys command in a NT indicator. For instance, if your hotkey to cancel the last order is assigned to F8, then use SendKeys.Send("{F8}");

Here's a post where max-td uses the ChartButtons indicator to change the Ninjatader drawing tools with one button click. https://futures.io/elite-circle/7607-push-buttons-ninjatrader-7-a-3.html#post103743

Reply With Quote
The following 3 users say Thank You to monpere for this post:
 
  #5 (permalink)
Elite Member
Zurich Switzerland
 
Futures Experience: Intermediate
Platform: NinjaTrader
Broker/Data: IB
Favorite Futures: ES, 6E, CL
 
Posts: 404 since Sep 2009
Thanks: 64 given, 511 received


Big Mike View Post
1. You can't place orders with an indicator, it requires a strategy. Unless you mean you are just trading (discretionary) by clicking buttons.

Sorry for being not so clear. English is my third language…
I plan the trade with entry, stop, targets, MM etc. and some programmed limiting choices by the entry part of my trading plan with this tool. And if OK, push the button. I call it discretionary trading with training wheels. And its an indicator.

As you see on the picture, I have an entry order at the exchange that was sent by clicking the button and two oco orders (generated by that clicking) that are in my computer (and will go to the exchange when entry price is touched).
To cancel this stuff I have to cancel the order and the pending orders in my system. And I want to do this with one click at the clear button, to keep things KIS(S).

Attached Thumbnails
cancel last order-tradeyourplan.png  
Reply With Quote
 
  #6 (permalink)
Elite Member
Zurich Switzerland
 
Futures Experience: Intermediate
Platform: NinjaTrader
Broker/Data: IB
Favorite Futures: ES, 6E, CL
 
Posts: 404 since Sep 2009
Thanks: 64 given, 511 received


monpere View Post
SendKeys.Send("{F8}");

Thats what I was looking for. Thx! This should work.

Reply With Quote
 
  #7 (permalink)
Elite Member
Zurich Switzerland
 
Futures Experience: Intermediate
Platform: NinjaTrader
Broker/Data: IB
Favorite Futures: ES, 6E, CL
 
Posts: 404 since Sep 2009
Thanks: 64 given, 511 received

Hotkey

For Ctrl+Alt+Escape (my Hotkey for "cancel last order"), the code is:
SendKeys.Send("^%{ESC}"); // HotKey for "cancel last order"

And it works. Thx!

Reply With Quote
The following 2 users say Thank You to terratec for this post:
 
  #8 (permalink)
Elite Member
Calcutta, India
 
Futures Experience: Intermediate
Platform: ArthaChitra
 
Posts: 278 since Jun 2009
Thanks: 161 given, 259 received


Big Mike View Post
1. You can't place orders with an indicator, it requires a strategy. Unless you mean you are just trading (discretionary) by clicking buttons.

you can place an order via an indicator.

https://futures.io/free_downloads/vip_elite_circle/900-download.html?view

Reply With Quote
The following 2 users say Thank You to bukkan for this post:
 
  #9 (permalink)
Elite Member
Zurich Switzerland
 
Futures Experience: Intermediate
Platform: NinjaTrader
Broker/Data: IB
Favorite Futures: ES, 6E, CL
 
Posts: 404 since Sep 2009
Thanks: 64 given, 511 received

Object reference not set to an instance of an object

Thx bukkan

My indicator is based on your code. Entry, stop, targets, oco. Everything is possible that way. To plan and enter a trade much more flexible (and visible on the chart, while planing) than ATM. After entry you can even use the breakeven position by using the hotkey code to automate this.

One little problem with your indicator (and mine too): When loading (or reload with F5) or changing time frame with charttrader enabled but closed, I have an error:
Error on calling 'OnStartUp' method for indicator 'ChartTraderIndicator': Object reference not set to an instance of an object.
When changing timeframe etc. with charttrader open, then there are no errors. It's a problem I can live with, but if you see a solution...

Thx again for your work!

Reply With Quote
 
  #10 (permalink)
Elite Member
Calcutta, India
 
Futures Experience: Intermediate
Platform: ArthaChitra
 
Posts: 278 since Jun 2009
Thanks: 161 given, 259 received


hi terratec,
may be its the ChartTraderControl which is not initialized (it has a private constructor) etc. maybe you should bug fix it with try catch. alternative would be placing the buttons on the toolstrip or the chart panel itself.

with the code i just provided an example (for submitting orders via indicators) which can be taken as a reference point.

Reply With Quote

Reply



futures io > > > > > cancel last order

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
ATM Order Cancel Project Baseheadz NinjaTrader Programming 4 August 16th, 2011 12:32 AM
IOG causing my limit order to cancel and replace intrabar tradersheldon EasyLanguage Programming 10 August 2nd, 2011 10:03 AM
How to cancel my subscription to all threads trendisyourfriend Tech Support 2 May 24th, 2011 07:30 PM
Order Management togier Traders Hideout 4 April 10th, 2011 01:25 PM
Help wanted! Long/short strategy with cancel order and trail stop mrticks NinjaTrader Programming 9 October 26th, 2010 05:15 PM


All times are GMT -4. The time now is 02:41 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-12 in 0.14 seconds with 20 queries on phoenix via your IP 54.90.207.75