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 monpere with 1.9 thanks per post
    4. looks_4 TradingGuy with 1 thanks per post
    1. trending_up 23,954 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

  #61 (permalink)
 
Big Mike's Avatar
 Big Mike 
Manta, Ecuador
Site Administrator
Developer
Swing Trader
 
Experience: Advanced
Platform: Custom solution
Broker: IBKR
Trading: Stocks & Futures
Frequency: Every few days
Duration: Weeks
Posts: 50,397 since Jun 2009
Thanks Given: 33,173
Thanks Received: 101,537

Moderator Notice
Moderator Notice



Mike

We're here to help: just ask the community or contact our Help Desk

Quick Links: Change your Username or Register as a Vendor
Searching for trading reviews? Review this list
Lifetime Elite Membership: Sign-up for only $149 USD
Exclusive money saving offers from our Site Sponsors: Browse Offers
Report problems with the site: Using the NexusFi changelog thread
Follow me on Twitter Visit my NexusFi Trade Journal Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Deepmoney LLM
Elite Quantitative GenAI/LLM
New Micros: Ultra 10-Year & Ultra T-Bond -- Live Now
Treasury Notes and Bonds
Better Renko Gaps
The Elite Circle
Exit Strategy
NinjaTrader
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Get funded firms 2023/2024 - Any recommendations or word …
61 thanks
Funded Trader platforms
38 thanks
NexusFi site changelog and issues/problem reporting
27 thanks
GFIs1 1 DAX trade per day journal
19 thanks
The Program
18 thanks
  #62 (permalink)
 traderflorida 
San Antonio, TX, USA
 
Experience: Advanced
Platform: TOS
Trading: ES
Posts: 1 since Nov 2011
Thanks Given: 0
Thanks Received: 0

Did this thread ever migrate somewhere else? It was just getting interesting

Reply With Quote
  #63 (permalink)
 
Big Mike's Avatar
 Big Mike 
Manta, Ecuador
Site Administrator
Developer
Swing Trader
 
Experience: Advanced
Platform: Custom solution
Broker: IBKR
Trading: Stocks & Futures
Frequency: Every few days
Duration: Weeks
Posts: 50,397 since Jun 2009
Thanks Given: 33,173
Thanks Received: 101,537



traderflorida View Post
Did this thread ever migrate somewhere else? It was just getting interesting

Not that I know of, so feel free to start the new topic and then invite the guys to continue the discussion in the appropriate thread.

Mike

We're here to help: just ask the community or contact our Help Desk

Quick Links: Change your Username or Register as a Vendor
Searching for trading reviews? Review this list
Lifetime Elite Membership: Sign-up for only $149 USD
Exclusive money saving offers from our Site Sponsors: Browse Offers
Report problems with the site: Using the NexusFi changelog thread
Follow me on Twitter Visit my NexusFi Trade Journal Reply With Quote
  #64 (permalink)
 tony2604 
Europe
 
Experience: Intermediate
Platform: NinjaTrader, CQG Trader
Broker: Mirus
Trading: currency futures, forex
Posts: 79 since Apr 2010
Thanks Given: 39
Thanks Received: 42

Hello,

thank you for sharing this. But I got a problem - when I add this to my OnBarUpdate and then I want to enable the strategy then immediately after checking its unchecked again and remains disabled, so I cant enable the strategy with this.

Did you change or add somehting else in the strategy?

Thanks
Tony


ThatManFromTexas View Post
Saw this in another thread and thought it might be helpful to what ya'll are trying to accomplish.




Reply With Quote
  #65 (permalink)
 
Silver Dragon's Avatar
 Silver Dragon 
Cincinnati Ohio
Legendary Master Data Manipulator
 
Experience: Intermediate
Platform: TastyWorks / NT
Broker: TastyWorks /NT
Trading: FX, Stocks, Options
Posts: 2,107 since Feb 2011
Thanks Given: 6,422
Thanks Received: 5,238

Created a indicator to hide and rearrange the Chart Trade buttons. Information and download link can be found here:

The base code could be useful for some of the ideas found in this thread.

Robert

nosce te ipsum

You make your own opportunities in life.
Visit my NexusFi Trade Journal Reply With Quote
Thanked by:
  #66 (permalink)
 tony2604 
Europe
 
Experience: Intermediate
Platform: NinjaTrader, CQG Trader
Broker: Mirus
Trading: currency futures, forex
Posts: 79 since Apr 2010
Thanks Given: 39
Thanks Received: 42

Hello,

thank you for your code. To change the size of the buttons I need to list them in the code. I canīt find all the button-names somewhere. Where can I find the names of all buttons in chart trader to change the size and position?

Thank you very much.

Best regards
Tony


bukkan View Post
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
  #67 (permalink)
 
vvhg's Avatar
 vvhg 
Northern Germany
 
Experience: Intermediate
Platform: NT
Trading: FDAX, CL
Posts: 1,583 since Mar 2011
Thanks Given: 1,016
Thanks Received: 2,824


tony2604 View Post
Hello,

thank you for your code. To change the size of the buttons I need to list them in the code. I canīt find all the button-names somewhere. Where can I find the names of all buttons in chart trader to change the size and position?

Thank you very much.

Best regards
Tony

Just print the names to the output window like this:
 
Code
Print("ChartControl.Controls[i].Name "+ChartControl.Controls[i].Name);

vvhg

Hic Rhodos, hic salta.
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