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)
cancel last order
Updated September 1, 2011
Top Posters
looks_one
terratec
with 8 posts (2 thanks)
looks_two
bukkan
with 4 posts (3 thanks)
looks_3
lolu
with 2 posts (0 thanks)
looks_4
Big Mike
with 1 posts (0 thanks)
trending_up
6,701 views
thumb_up
8 thanks given
group
4 followers
forum
16 posts
attach_file
1 attachments
cancel last order
July 31st, 2011, 08:31 AM
Zurich Switzerland
Experience: Intermediate
Platform: NinjaTrader
Broker: IB
Trading: ES, 6E, CL
Posts: 403 since Sep 2009
Thanks Given: 64
Thanks Received: 515
bukkan
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
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
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];
}
}
Can you help answer these questions from other members on NexusFi?
Best Threads (Most Thanked) in the last 7 days on NexusFi
July 31st, 2011, 09:06 AM
Calcutta, India
Experience: Intermediate
Platform: ArthaChitra
Posts: 278 since Jun 2009
Thanks Given: 161
Thanks Received: 271
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.
July 31st, 2011, 09:58 AM
Zurich Switzerland
Experience: Intermediate
Platform: NinjaTrader
Broker: IB
Trading: ES, 6E, CL
Posts: 403 since Sep 2009
Thanks Given: 64
Thanks Received: 515
I already reduded to the max. Now I do it the NinjaTrader way: It's on the list for future ...
August 27th, 2011, 12:31 PM
Zurich Switzerland
Experience: Intermediate
Platform: NinjaTrader
Broker: IB
Trading: ES, 6E, CL
Posts: 403 since Sep 2009
Thanks Given: 64
Thanks Received: 515
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.
September 1st, 2011, 12:55 PM
Lagos, Nigeria
Market Wizard
Experience: Intermediate
Platform: NinjaTrader, SierraChart
Trading: Euro Currency & Oil
Frequency: Daily
Duration: Hours
Posts: 2,552 since Jun 2009
Thanks Given: 1,049
Thanks Received: 1,678
bukkan
you can place an order via an indicator.
bukkan,
Can we have this ChartTraderIndicator to do Market Orders too, in addition to the Limit Orders it already has in it.
Lolu
September 1st, 2011, 01:07 PM
Calcutta, India
Experience: Intermediate
Platform: ArthaChitra
Posts: 278 since Jun 2009
Thanks Given: 161
Thanks Received: 271
lolu
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.
September 1st, 2011, 01:17 PM
Lagos, Nigeria
Market Wizard
Experience: Intermediate
Platform: NinjaTrader, SierraChart
Trading: Euro Currency & Oil
Frequency: Daily
Duration: Hours
Posts: 2,552 since Jun 2009
Thanks Given: 1,049
Thanks Received: 1,678
bukkan
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
Last Updated on September 1, 2011