NexusFi: Find Your Edge


Home Menu

 





The control tree of a ChartControl object


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one Mindset with 2 posts (0 thanks)
    2. looks_two shodson with 1 posts (18 thanks)
    3. looks_3 Gabe2004 with 1 posts (0 thanks)
    4. looks_4 kenz987 with 1 posts (1 thanks)
    1. trending_up 5,729 views
    2. thumb_up 21 thanks given
    3. group 8 followers
    1. forum 7 posts
    2. attach_file 2 attachments




 
Search this Thread
  #1 (permalink)
 
shodson's Avatar
 shodson 
OC, California, USA
Quantoholic
 
Experience: Advanced
Platform: IB/TWS, NinjaTrader, ToS
Broker: IB, ToS, Kinetick
Trading: stocks, options, futures, VIX
Posts: 1,971 since Jun 2009
Thanks Given: 534
Thanks Received: 3,711

 
Code
=> chartControl :: NinjaTrader.Gui.Chart.ChartControl
   => pnlChart :: NinjaTrader.Gui.Chart.ChartCanvas, BorderStyle: System.Windows.Forms.BorderStyle.None
      => QuantitySelector :: NinjaTrader.Gui.SuperDom.QuantitySelector
         => btnAccept :: System.Windows.Forms.Button, Text: 
         => btnCancel :: System.Windows.Forms.Button, Text: X
         => numericUpDown1 :: NinjaTrader.Gui.QuantityUpDown, Minimum = 0, Maximum = 1000000000
            =>  :: System.Windows.Forms.UpDownBase+UpDownButtons
            =>  :: System.Windows.Forms.UpDownBase+UpDownEdit, Text: 3
   => scrChart :: System.Windows.Forms.HScrollBar, Minimum: 0, Maximum: 343, Value: 270
   => pnlChartTrader :: System.Windows.Forms.Panel, BorderStyle: System.Windows.Forms.BorderStyle.Fixed3D
      => ctrChartTraderControl :: NinjaTrader.Gui.Chart.ChartTraderControl
         => lblSimOrder :: System.Windows.Forms.Label, Text: so
         => lblOco :: System.Windows.Forms.Label, Text: oco
         => lblBidVolume :: System.Windows.Forms.Label, Text: 12
         => lblAskVolume :: System.Windows.Forms.Label, Text: 58
         => lblBidPrice :: System.Windows.Forms.Label, Text: B: 1.4085
         => lblAskPrice :: System.Windows.Forms.Label, Text: A: 1.4086
         => btnChartTraderVisible :: System.Windows.Forms.Button, Text: 
         => label6 :: System.Windows.Forms.Label, Text: Qty
         => nudQuantity :: NinjaTrader.Gui.QuantityUpDown, Minimum = 1, Maximum = 1000000000
            =>  :: System.Windows.Forms.UpDownBase+UpDownButtons
            =>  :: System.Windows.Forms.UpDownBase+UpDownEdit, Text: 1
         => label5 :: System.Windows.Forms.Label, Text: Account
         => cboAccount :: System.Windows.Forms.ComboBox, Items.Count: 2
         => btnSelectStrategy :: System.Windows.Forms.Button, Text: ...
         => cboStrategy :: System.Windows.Forms.ComboBox, Items.Count: 4
         => label4 :: System.Windows.Forms.Label, Text:     ATM Strategy
         => lblProfitLoss :: System.Windows.Forms.Label, Text: PnL
         => lblAverageEntry :: System.Windows.Forms.Label, Text: ENTRY
         => grpOrderEntryMode :: System.Windows.Forms.GroupBox, Text: Order Entry Mode
            => rdbAlwaysSell :: System.Windows.Forms.RadioButton, Checked: False
            => rdbAlwaysBuy :: System.Windows.Forms.RadioButton, Checked: False
            => rdbDynamic :: System.Windows.Forms.RadioButton, Checked: True
         => lblPosition :: System.Windows.Forms.Label, Text: FLAT
         => chkDirectChartEntry :: System.Windows.Forms.CheckBox, CheckState: 0
         => btnReverse :: System.Windows.Forms.Button, Text: REV
         => btnClose :: System.Windows.Forms.Button, Text: CLOSE
         => btnSellBid :: System.Windows.Forms.Button, Text: SELL BID
         => btnBuyBid :: System.Windows.Forms.Button, Text: BUY BID
         => btnSellAsk :: System.Windows.Forms.Button, Text: SELL ASK
         => btnBuyAsk :: System.Windows.Forms.Button, Text: BUY ASK
         => btnSellMarket :: System.Windows.Forms.Button, Text: SELL MARKET
         => btnBuyMarket :: System.Windows.Forms.Button, Text: BUY MARKET
   => tsrTool :: System.Windows.Forms.ToolStrip, Name: tsrTool, Items: 17
   =>  :: System.Windows.Forms.Panel, BorderStyle: System.Windows.Forms.BorderStyle.None
      =>  :: System.Windows.Forms.Button, Text: Button 1
      =>  :: System.Windows.Forms.Button, Text: Button 2


Attached Files
Elite Membership required to download: fooWinForm.cs
Follow me on X Visit my NexusFi Trade Journal Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
NYSE Owner ICE Invests in Crypto Exchange OKX at $25 Bil …
Cryptocurrency
Orban at 29pct as Hungary Votes Tomorrow -- McIlroy Surg …
Prediction Markets & Event Contracts
April 2026 Jobs Report: +115k vs +65k Expected
Traders Hideout
Saylors 41-Month HODL Breaks: Strategy Sells 32 BTC as $ …
Prediction Markets & Event Contracts
Iran Peace Expired NO: Ceasefire on Life Support, OPEC a …
Prediction Markets & Event Contracts
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Sober Journey With S&P
24 thanks
2026 Jlab journal
10 thanks
Lady Vols Primer: Trading Volatility Journal
8 thanks
Algo automated / semi-automated trading anyone?
6 thanks
Trying to learn Volume and price action correlation
5 thanks
  #3 (permalink)
kenz987
Houston, TX
 
Posts: 23 since Apr 2010
Thanks Given: 17
Thanks Received: 5


Hey shodson, Thanks for that. Could you modify it to show the detail of the y-axis panel "Chart Panel Properties" area - horizontal grid settings etc.


Reply With Quote
Thanked by:
  #4 (permalink)
 ghoti 
Daytona Beach
 
Experience: Advanced
Platform: NinjaTrader
Broker: Mirus/Zen-Fire
Trading: ES
Posts: 54 since May 2010
Thanks Given: 7
Thanks Received: 100

Does this help.

ghoti


Attached Thumbnails
Click image for larger version

Name:	ChartControl.jpg
Views:	592
Size:	938.1 KB
ID:	35587  
Reply With Quote
Thanked by:
  #5 (permalink)
 
Mindset's Avatar
 Mindset 
Singapore
 
Experience: Intermediate
Platform: NT
Broker: ib
Trading: MES
Posts: 365 since Sep 2009
Thanks Given: 90
Thanks Received: 291

Help required!!

If I wanted to remove the control btnReverse, how would I do it?

I tried
 
Code
		Control.ControlCollection ccol = ChartControl.Controls;	
		 Control ch = ccol["pnlChartTrader"];
				if (ch!=null) 
{
(ct = ch.Control["ctrChartTraderControl"];
if(ct.Contains("btnReverse"))
			{
		pnlChartTrader.Controls.Remove(btnReverse);
				
			}
				}


Reply With Quote
  #6 (permalink)
 ericson 
Sacramento, CA
 
Experience: Advanced
Platform: NinjaTrader
Broker: NA
Trading: Stocks, Forex
Posts: 64 since Nov 2013
Thanks Given: 14
Thanks Received: 19

Mindset, in regards to your profile photo, yes i wish i had those two buttons ready to go on my keyboard.


Reply With Quote
  #7 (permalink)
 
Mindset's Avatar
 Mindset 
Singapore
 
Experience: Intermediate
Platform: NT
Broker: ib
Trading: MES
Posts: 365 since Sep 2009
Thanks Given: 90
Thanks Received: 291

Ericson
I keep searching different keyboards but I can never find those buttons either:-)

I produced a clunky solution to my problem here


Reply With Quote
  #8 (permalink)
Gabe2004
Toronto, Canada
 
Posts: 5 since Dec 2009
Thanks Given: 0
Thanks Received: 0


ghoti View Post
Does this help.

ghoti

How can I replicate the following attachment 35587d1301598042 on my computer?

Thanks

Gabe


Reply With Quote




Last Updated on April 10, 2014


© 2026 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 - Downloads - Top
no new posts