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


cancel last order
Updated: Views / Replies:3,765 / 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

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


bukkan View Post
may be its the ChartTraderControl which is not initialized (it has a private constructor) etc. maybe you should bug fix it with try catch.

I am not a programmer and have no idea how to do. I am just a copy/paste and try/error guy...

bukkan View Post
alternative would be placing the buttons on the toolstrip or the chart panel itself.

I use the buttons on the toolstrip, not on charttrader.

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

Sure. But the above error comes from using your original indicator.

This is the only code from your indicator I use in the onStartup to create the account variable a, that is needed for the orders.
 
Code
    string accName=ChartControl.Controls["pnlChartTrader"].Controls["ctrChartTraderControl"].Controls["cboAccount"].Text;
                a = null;
                for (int i = 0;i <= NinjaTrader.Cbi.Globals.Accounts.Count - 1; i++)
                {
                    if (NinjaTrader.Cbi.Globals.Accounts[i].Name == accName)
                    {
                        a = NinjaTrader.Cbi.Globals.Accounts[i];
                    }
                }

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

I am also not a programmer. Ctrl+C Ctrl+V type only

the error lines in the ctrChartTraderControl control. when minimized it couldnt be accessed.

since you use the buttons on the toolstrip, you should remove all the codes pertaining to the ctrChartTraderControl, that should fix the issue.

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


I already reduded to the max. Now I do it the NinjaTrader way: It's on the list for future ...

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

The concept of using a button on a chart to fire the hotkey "cancel last order" works fine if trading only one instrument.
The only problem is that NT does not cancel the last order of the active window but the last order you have in the system.
If you have orders in different instruments you push the button in the CL window and an order (last placed) in the ES is canceled.
All "last order" hotkeys are not window sensitive. Others like close position, reverse or breakeven position are.
Nice to work with hotkeys, but tricky.

Reply With Quote
 
  #15 (permalink)
Elite Member
Lagos, Nigeria
 
Futures Experience: Intermediate
Platform: NinjaTrader, SierraChart
Favorite Futures: Euro Currency & Oil
 
lolu's Avatar
 
Posts: 2,440 since Jun 2009
Thanks: 1,000 given, 1,595 received


bukkan View Post

bukkan,

Can we have this ChartTraderIndicator to do Market Orders too, in addition to the Limit Orders it already has in it.

Lolu

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


lolu View Post
bukkan,

Can we have this ChartTraderIndicator to do Market Orders too, in addition to the Limit Orders it already has in it.

Lolu

yes. you can. you got to modify the orders accordingly.

Reply With Quote
The following user says Thank You to bukkan for this post:
 
  #17 (permalink)
Elite Member
Lagos, Nigeria
 
Futures Experience: Intermediate
Platform: NinjaTrader, SierraChart
Favorite Futures: Euro Currency & Oil
 
lolu's Avatar
 
Posts: 2,440 since Jun 2009
Thanks: 1,000 given, 1,595 received


bukkan View Post
yes. you can. you got to modify the orders accordingly.

Do you mean that I can modify the ChartTraderIndicator in ...\bin\Custom folder ? I had thought that it is protected.

Lolu

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)

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
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:30 PM.

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.163.209.109