Announcement
Collapse
Looking for a User App or Add-On built by the NinjaTrader community?
Visit NinjaTrader EcoSystem and our free User App Share!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less
Partner 728x90
Collapse
NinjaTrader
Adding button to a chart panel rather than to chart controls
Collapse
X
-
Hello,
Thank you for the post.
For nt7 there is really no documentation surrounding these concepts, but I can provide some links which can assist.
The first would be to use the toolbar rather than the chart trader:
The second would be to add a new panel to the chart, there is an example attached called UnsupportedAddFormPanelToChart_NT7, as the name suggests using these type of items in nt7 are unsupported and undocumented. This is mainly just using C# to modify the existing windows forms window and controls in that window.
I look forward to being of further assistance.Attached FilesJesseNinjaTrader Customer Service
-
Hello Jesse! Thank you for your reply. I am familiar with the attached code and it adds a button (or a panel) to controls group of the currently opened chart window. So if I were to add several data series within one chart window these would have shared a panel created by one of them. Is there a way to create a button directly on the chart panel like on the attached screenshot (it is from NT8)?
Comment
-
Hello,
Thank you for the reply.
I am unaware of a way to layer controls in this way in windows forms. You could review windows forms information online to see if this type of layering is possible in winforms at all but this would be outside of the scope that I could assist with for NT7.
I am only aware of being able to append items into the controls collection and have them dock in a position relative to other controls. in NT8 the UserControlCollection is what you are asking for which is an extra layer that is added which allows for controls to be added over a chart. You could try experimenting with making a layer like this in 7, but then you have to worry about passing clicks to the chart control and so on.
I look forward to being of further assistance.JesseNinjaTrader Customer Service
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by Stanfillirenfro, Today, 07:23 AM
|
1 response
3 views
0 likes
|
Last Post Today, 07:37 AM | ||
Started by cmtjoancolmenero, Yesterday, 03:58 PM
|
2 responses
21 views
0 likes
|
Last Post Today, 07:24 AM | ||
Started by olisav57, Yesterday, 07:39 PM
|
1 response
9 views
0 likes
|
Last Post Today, 07:23 AM | ||
Started by cocoescala, 10-12-2018, 11:02 PM
|
7 responses
944 views
0 likes
|
Last Post
by Jquiroz1975
Today, 07:21 AM
|
||
Started by oviejo, Today, 12:28 AM
|
1 response
12 views
0 likes
|
Last Post Today, 07:20 AM |
Comment