NexusFi: Find Your Edge


Home Menu

 





cancel last order


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one terratec with 8 posts (2 thanks)
    2. looks_two bukkan with 4 posts (3 thanks)
    3. looks_3 lolu with 2 posts (0 thanks)
    4. looks_4 monpere with 1 posts (3 thanks)
    1. trending_up 6,644 views
    2. thumb_up 8 thanks given
    3. group 4 followers
    1. forum 16 posts
    2. attach_file 1 attachments




 
Search this Thread

cancel last order

  #11 (permalink)
 terratec 
Zurich Switzerland
 
Experience: Intermediate
Platform: NinjaTrader
Broker: IB
Trading: ES, 6E, CL
Posts: 403 since Sep 2009
Thanks Given: 64
Thanks Received: 515


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];
                    }
                }

Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Exit Strategy
NinjaTrader
ZombieSqueeze
Platforms and Indicators
Pivot Indicator like the old SwingTemp by Big Mike
NinjaTrader
MC PL editor upgrade
MultiCharts
How to apply profiles
Traders Hideout
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Just another trading journal: PA, Wyckoff & Trends
28 thanks
Tao te Trade: way of the WLD
24 thanks
Diary of a simple price action trader
21 thanks
My NQ Trading Journal
14 thanks
GFIs1 1 DAX trade per day journal
9 thanks
  #12 (permalink)
 bukkan 
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.

Reply With Quote
  #13 (permalink)
 terratec 
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 ...

Started this thread Reply With Quote
  #14 (permalink)
 terratec 
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.

Started this thread Reply With Quote
  #15 (permalink)
 
lolu's Avatar
 lolu 
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 View Post
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

Visit my NexusFi Trade Journal Reply With Quote
  #16 (permalink)
 bukkan 
Calcutta, India
 
Experience: Intermediate
Platform: ArthaChitra
Posts: 278 since Jun 2009
Thanks Given: 161
Thanks Received: 271


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
Thanked by:
  #17 (permalink)
 
lolu's Avatar
 lolu 
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 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

Visit my NexusFi Trade Journal Reply With Quote




Last Updated on September 1, 2011


© 2024 NexusFi™, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
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.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Privacy Policy - Downloads - Top
no new posts