NexusFi: Find Your Edge


Home Menu

 





ChartTrader & Order Button size - width


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one monpere with 15 posts (28 thanks)
    2. looks_two ThatManFromTexas with 9 posts (18 thanks)
    3. looks_3 futuretrader with 8 posts (0 thanks)
    4. looks_4 lolu with 6 posts (0 thanks)
      Best Posters
    1. looks_one bukkan with 4.3 thanks per post
    2. looks_two ThatManFromTexas with 2 thanks per post
    3. looks_3 aligator with 2 thanks per post
    4. looks_4 monpere with 1.9 thanks per post
    1. trending_up 24,258 views
    2. thumb_up 65 thanks given
    3. group 23 followers
    1. forum 66 posts
    2. attach_file 6 attachments




 
Search this Thread

ChartTrader & Order Button size - width

  #1 (permalink)
 jsengxx 
POrtugal
 
Posts: 52 since Nov 2009

Hello,

I want to know if some one can modify the chart trader in ninjatrader?
I want to have only a buy - sel and close or flat button. The original chart trader is to big. I need the space for my charts.

Best regards,
João Soares

Reply With Quote

Can you help answer these questions
from other members on NexusFi?
ZombieSqueeze
Platforms and Indicators
MC PL editor upgrade
MultiCharts
Pivot Indicator like the old SwingTemp by Big Mike
NinjaTrader
Exit Strategy
NinjaTrader
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Diary of a simple price action trader
26 thanks
Just another trading journal: PA, Wyckoff & Trends
23 thanks
Tao te Trade: way of the WLD
20 thanks
My NQ Trading Journal
19 thanks
HumbleTraders next chapter
9 thanks
  #3 (permalink)
 
max-td's Avatar
 max-td 
Frankfurt
 
Experience: Intermediate
Platform: NinjaTrader
Trading: FGBL 6E B4
Posts: 1,752 since Jun 2009
Thanks Given: 2,309
Thanks Received: 927


hi João,

this is not possible in Ninja as far as i know.

what you can do to get more space is, to "hide" the charttrader (black arrow upper right corner)

and to activate Keyboard- Hot Keys in Ninja for Buy + Sell + Close.
go to : tools > Hot Key Manager > Order Entry ... and set the keys the way you like them.

maybe thats a solution for you.

max-td
Reply With Quote
  #4 (permalink)
 jsengxx 
POrtugal
 
Posts: 52 since Nov 2009

I don´t like hot keys so that is not an option for me.
That chart trader is to big.

Reply With Quote
  #5 (permalink)
 raffu 
Espoo, Finland
 
Posts: 11 since Dec 2010


jsengxx View Post
I don´t like hot keys so that is not an option for me.
That chart trader is to big.

Newer used a chart trader but I think that a normal static super dom is very useful although it wasn't so obvious at first hand.

Reply With Quote
  #6 (permalink)
 
Trader.Jon's Avatar
 Trader.Jon 
Near the BEuTiFULL Horse Shoe
 
Experience: Beginner
Platform: NinjaTrader
Broker: MBTrading Dukascopy ZenFire
Trading: $EURUSD when it is trending
Posts: 473 since Jul 2009
Thanks Given: 401
Thanks Received: 184


jsengxx View Post
I don´t like hot keys so that is not an option for me.
That chart trader is to big.

Maybe try a different approach ... monitor with more pixels?

TJ

Writing to you from the wonderful province of Ontario, Canada. Home to the world's biggest natural negative ion generator, the Niagara Falls, and to those that dare to know how to go over it in a barrel. SALUTE!
Reply With Quote
  #7 (permalink)
 bukkan 
Calcutta, India
 
Experience: Intermediate
Platform: ArthaChitra
Posts: 278 since Jun 2009
Thanks Given: 161
Thanks Received: 271

one can easily resize the buttons etc. they are just buttons, and standard windows control isnt it.

 
Code
for (int i = 0;i <= ChartControl.Controls.Count - 1;i++)
            {
               if (ChartControl.Controls[i] == ChartControl.Controls["pnlChartTrader"])
                {
                    Panel p = (Panel)ChartControl.Controls["pnlChartTrader"];
                    
                    for (int j = 0;j <= p.Controls.Count - 1;j++)
                    {
                        if (p.Controls[j] == ChartControl.Controls["pnlChartTrader"].Controls["ctrChartTraderControl"])
                        {
                            Control ctrader = ChartControl.Controls["pnlChartTrader"].Controls["ctrChartTraderControl"];
                            
                            for (int k = 0;k <= ctrader.Controls.Count - 1;k++)
                            {
                                if (ctrader.Controls[k].Name == "btnBuyMarket")
                                {
                                    Button btnMkt = (Button)ctrader.Controls[k];
                                    btnMkt.Width = (int)(btnMkt.Width / 2);
                                }
                             }
                        }
                        
                    }
                }
                
            }
the above code resizes the Buy Market button to half

run the code once. so put it in OnStartUp()

Reply With Quote
  #8 (permalink)
 
DavidHP's Avatar
 DavidHP 
Isla Mujeres, MX
Legendary Market Wizard
 
Experience: Advanced
Platform: NinjaTrader
Broker: Ninjatrader / Optimus Futures / AmpFutures
Trading: ES / 6E / 6B / CL
Frequency: Every few days
Duration: Minutes
Posts: 1,609 since Aug 2009
Thanks Given: 11,335
Thanks Received: 2,743


bukkan View Post
one can easily resize the buttons etc. they are just buttons, and standard windows control isnt it.
run the code once. so put it in OnStartUp()

I'm getting several errors when putting this in an indicator.
Does it go elsewhere?

Maybe I'm just missing declaring some varibles or additional coding?

Thanks

Rejoice in the Thunderstorms of Life . . .
Knowing it's not about Clouds or Wind. . .
But Learning to Dance in the Rain ! ! !
Follow me on Twitter Reply With Quote
  #9 (permalink)
 bukkan 
Calcutta, India
 
Experience: Intermediate
Platform: ArthaChitra
Posts: 278 since Jun 2009
Thanks Given: 161
Thanks Received: 271

at the top (declaration region) make sure you add

 
Code
using System.Windows.Forms;

Reply With Quote
Thanked by:
  #10 (permalink)
 
DavidHP's Avatar
 DavidHP 
Isla Mujeres, MX
Legendary Market Wizard
 
Experience: Advanced
Platform: NinjaTrader
Broker: Ninjatrader / Optimus Futures / AmpFutures
Trading: ES / 6E / 6B / CL
Frequency: Every few days
Duration: Minutes
Posts: 1,609 since Aug 2009
Thanks Given: 11,335
Thanks Received: 2,743



bukkan View Post
at the top (declaration region) make sure you add

 
Code
using System.Windows.Forms;


Great, that worked.
So using code like this all of the buttons can be made smaller.
Can the entire panel be reduced to match so that it takes less width similar to the buttons?
I imagine there is a way to list all of the controls to do this?

I've asked NT many times for a way to reduce the size of the DOM but each time they say it is not possible.
Perhaps this method would also allow that.


Thanks,

Rejoice in the Thunderstorms of Life . . .
Knowing it's not about Clouds or Wind. . .
But Learning to Dance in the Rain ! ! !
Follow me on Twitter Reply With Quote




Last Updated on February 25, 2014


© 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