ChartTrader & Order Button size - width - NinjaTrader Programming | futures io social day trading
futures io futures trading


ChartTrader & Order Button size - width
Updated: Views / Replies:12,634 / 66
Created: by jsengxx Attachments:6

Welcome to futures io.

(If you already have an account, login at the top of the page)

futures io is the largest futures trading community on the planet, with over 90,000 members. At futures io, our goal has always been and always will be to create a friendly, positive, forward-thinking community where members can openly share and discuss everything the world of trading has to offer. The community is one of the friendliest you will find on any subject, with members going out of their way to help others. Some of the primary differences between futures io and other trading sites revolve around the standards of our community. Those standards include a code of conduct for our members, as well as extremely high standards that govern which partners we do business with, and which products or services we recommend to our members.

At futures io, our focus is on quality education. No hype, gimmicks, or secret sauce. The truth is: trading is hard. To succeed, you need to surround yourself with the right support system, educational content, and trading mentors – all of which you can find on futures io, utilizing our social trading environment.

With futures io, you can find honest trading reviews on brokers, trading rooms, indicator packages, trading strategies, and much more. Our trading review process is highly moderated to ensure that only genuine users are allowed, so you don’t need to worry about fake reviews.

We are fundamentally different than most other trading sites:
  • We are here to help. Just let us know what you need.
  • We work extremely hard to keep things positive in our community.
  • We do not tolerate rude behavior, trolling, or vendors advertising in posts.
  • We firmly believe in and encourage sharing. The holy grail is within you, we can help you find it.
  • We expect our members to participate and become a part of the community. Help yourself by helping others.

You'll need to register in order to view the content of the threads and start contributing to our community.  It's free and simple.

-- Big Mike, Site Administrator

Reply
 6  
 
Thread Tools Search this Thread
 

ChartTrader & Order Button size - width

  #11 (permalink)
Elite Member
Calcutta, India
 
Futures Experience: Intermediate
Platform: ArthaChitra
 
Posts: 278 since Jun 2009
Thanks: 161 given, 259 received

yes u can, hopefully, do anything.

edit: the dom might be a bit difficult, may be with win32apis cant say for sure.

Reply With Quote
 
  #12 (permalink)
Elite Member
Georgia, US
 
Futures Experience: None
Platform: Various
Favorite Futures: Various
 
josh's Avatar
 
Posts: 4,897 since Jan 2011
Thanks: 5,143 given, 11,242 received


DavidHP View Post
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.

That's their standard answer for everything.

Reply With Quote
 
  #13 (permalink)
 Vendor: www.emsysinc.com 
Connecticut
 
Futures Experience: Intermediate
Platform: Various
Favorite Futures: Stocks & Futures
 
Posts: 8 since Jan 2011
Thanks: 1 given, 6 received


Another approach is to add the buttons to the tool bar, this way chart trader is gone and you have the basic controls you want.

Regards,
Guy

Reply With Quote
 
  #14 (permalink)
Membership Temporarily Revoked
POrtugal
 
Futures Experience: Advanced
Platform: Ninjatrader
 
Posts: 54 since Nov 2009
Thanks: 0 given, 21 received

IŽam not so good at programming. Do I have to put the code to an indicator? Please explane.

Can you program a buy and sel button at the close of the current bar or open next bar?

Reply With Quote
 
  #15 (permalink)
 Vendor: www.emsysinc.com 
Connecticut
 
Futures Experience: Intermediate
Platform: Various
Favorite Futures: Stocks & Futures
 
Posts: 8 since Jan 2011
Thanks: 1 given, 6 received


jsengxx View Post
IŽam not so good at programming. Do I have to put the code to an indicator? Please explane.

Can you program a buy and sel button at the close of the current bar or open next bar?


Yes, almost anything can be done, it's a matter of C# coding. Check out this thread for some examples. I'm sure you will find others if you search.

https://futures.io/ninjatrader-programming/7093-can-floating-window-coded-ninjascript-3.html


Regards,
Guy

Reply With Quote
The following 2 users say Thank You to TradingGuy for this post:
 
  #16 (permalink)
Elite Member
Bethesda, Maryland
 
Futures Experience: Intermediate
Platform: NinjaTrader
Favorite Futures: stocks
 
Posts: 5 since May 2011
Thanks: 36 given, 2 received

Bukkan, in a similar vein...


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()

Hello Bukkan,

Great example. Is it possible to hide some of the buttons on a charts toolbar? Basically, I've added a few buttons, but they take up too much room to the right of the Ninja buttons. So, I would like to hide their buttons from view. Seeing your code above leads me to believe that some sort of similar technique could be used to hide the buttons? How do you even know what the reference names for the buttons are? I see you referenced
"pnlChartTrader" above, how did you get a hold of that name? Many thanks in advance.

fosch

Reply With Quote
The following user says Thank You to fosch for this post:
 
  #17 (permalink)
Elite Member
Bala, PA, USA
 
Futures Experience: Intermediate
Platform: NinjaTrader
Broker/Data: Mirus, IB
Favorite Futures: SPY, Oil, Euro
 
monpere's Avatar
 
Posts: 1,858 since Jul 2010
Thanks: 300 given, 3,276 received


fosch View Post
Hello Bukkan,

Great example. Is it possible to hide some of the buttons on a charts toolbar? Basically, I've added a few buttons, but they take up too much room to the right of the Ninja buttons. So, I would like to hide their buttons from view. Seeing your code above leads me to believe that some sort of similar technique could be used to hide the buttons? How do you even know what the reference names for the buttons are? I see you referenced
"pnlChartTrader" above, how did you get a hold of that name? Many thanks in advance.

fosch

Check out the ChartButtons indicator in the download section as an alternative. I use it exclusively, and can use it with or without chart trader visible or enabled, and no need to alter NinjaTrader internal code.

Attached Thumbnails
ChartTrader &amp; Order Button size - width-chartbuttons.jpg  
Reply With Quote
The following 3 users say Thank You to monpere for this post:
 
  #18 (permalink)
Elite Member
Lagos, Nigeria
 
Futures Experience: Intermediate
Platform: NinjaTrader, SierraChart
Favorite Futures: Euro Currency & Oil
 
lolu's Avatar
 
Posts: 2,440 since Jun 2009
Thanks: 999 given, 1,595 received


monpere View Post
Check out the ChartButtons indicator in the download section as an alternative. I use it exclusively, and can use it with or without chart trader visible or enabled, and no need to alter NinjaTrader internal code.

What's your code(s) for BE (BreakEven) ? The ChartButtons indicator in the download section does not contain the codes for the buttons press/trigger actions.

Lolu

Reply With Quote
 
  #19 (permalink)
Elite Member
Bala, PA, USA
 
Futures Experience: Intermediate
Platform: NinjaTrader
Broker/Data: Mirus, IB
Favorite Futures: SPY, Oil, Euro
 
monpere's Avatar
 
Posts: 1,858 since Jul 2010
Thanks: 300 given, 3,276 received


lolu View Post
What's your code(s) for BE (BreakEven) ? The ChartButtons indicator in the download section does not contain the codes for the buttons press/trigger actions.

Lolu

You have to write your own code for the button actions. Most of my order buttons control a separately running strategy. The break even button tells the strategy to do something like "SetStopLoss(CalculationMode.Price, entryPrice +(2*TickSize)"

Reply With Quote
The following 2 users say Thank You to monpere for this post:
 
  #20 (permalink)
Elite Member
Lagos, Nigeria
 
Futures Experience: Intermediate
Platform: NinjaTrader, SierraChart
Favorite Futures: Euro Currency & Oil
 
lolu's Avatar
 
Posts: 2,440 since Jun 2009
Thanks: 999 given, 1,595 received



monpere View Post
You have to write your own code for the button actions. Most of my order buttons control a separately running strategy. The break even button tells the strategy to do something like "SetStopLoss(CalculationMode.Price, entryPrice +(2*TickSize)"

Is SetStopLoss(CalculationMode.Price, entryPrice +(2*TickSize) not a strategy code ?

Pls, could you give a typical example of a strategy call for BE ... the code(s) that call the strategy from within the ChartButtons indicator "to do something like SetStopLoss(CalculationMode.Price, entryPrice +(2*TickSize)".

What I want to do is code a BE action (just like the CLOSE action) into terratec's bTPA indicator.

Lolu

Reply With Quote

Reply



futures io > > > > > ChartTrader & Order Button size - width

Thread Tools Search this Thread
Search this Thread:

Advanced Search



Upcoming Webinars and Events (4:30PM ET unless noted)

Linda Bradford Raschke: Reading The Tape

Elite only

Adam Grimes: TBA

Elite only

NinjaTrader: TBA

January

Ran Aroussi: TBA

Elite only
     

Similar Threads
Thread Thread Starter Forum Replies Last Post
ninja & AutoHotKey for order entrys bobarian NinjaTrader 55 April 6th, 2016 03:59 PM
Order and Position Tracker - Open P&L ccfeldt MultiCharts 13 July 6th, 2011 09:22 AM
Order Flow & The Balance of Trade - Then & Now T1P1 Traders Hideout 11 May 24th, 2011 09:33 PM
Expected slippage vs order size fluxsmith Psychology and Money Management 21 March 23rd, 2011 04:03 PM
Liquidity & Order Fills DarrenH Traders Hideout 4 January 5th, 2011 08:09 AM


All times are GMT -4. The time now is 07:14 PM.

Copyright © 2017 by futures io, s.a., Av Ricardo J. Alfaro, Century Tower, Panama, +507 833-9432, info@futures.io
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.
no new posts
Page generated 2017-12-11 in 0.13 seconds with 20 queries on phoenix via your IP 54.92.194.75