Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Modifications to chart WPF elements and tab considerations
Collapse
X
-
Thanks. I installed and compiled Custom Chart Trader Buttons yesterday and as I switch tabs I get extra buttons which won't go away when the indicator is removed from the chart.
-
Hello RandomTask,
Are you referring to the chart modification indicators from the link below?
Hello All, Moving forward this will be maintained in the help guide reference samples and no longer maintained on the forum. Creating Chart WPF (UI) Modifications from an Indicator - https://ninjatrader.com/support/help...ui)-modifi.htm (https://ninjatrader.com/support/helpGuides/nt8/creating-chart-wpf-(ui)-modifi.htm) I've
Yes, these have been updated to be visible for the tab they are added to only.
Leave a comment:
-
Have any of these examples been updated? I notice with the Custom Chart Trader Buttons that as I switch back and forth between tabs extra buttons appear. They seem to be abandoned and have no functionality but still exist on the Chart Trader and won't go away. I'm assuming there is a bug in the sample code.
Leave a comment:
-
Hello, can you please advise which style should be used on the menu items to draw a tick mark (like e.g. Drawing tool > Snap mode)? When creating NTMenuItem with IsCheckable = true and style "InstrumentMenuItem", the menu item draws a pin instead of a tick mark. Thank you.
Leave a comment:
-
Hello soulfx,
I am not able understand what you are asking or requesting.
I am not able to find a direct question that I can answer in your posts.
Can you highlight this for me?
Leave a comment:
-
Hello, OK i will email you directly and take this offline - you are wasting time here with your responses and vagueness and i have unfortunately experienced this before with you - are you having a bad day?
For the record does someone internally monitor these posts .. as to how ninja can improve customer service ? because this is not helpful and i can sense it in your replies.
Leave a comment:
-
Hello soulfx,
I am unsure of the issue..
I have updated the scripts to only show on the tab they are applied to.
What is the issue I can assist you with?
When you mention "where it included the sample of code above to make Visible which is where i based it upon" can you clarify what you are asking for?
Leave a comment:
-
Hello, did you read my Post ? i had some clear questions?
I did not state there were issues with your example i said it was different to the original where the menu items are NOT stacked but added to the main menu at top alongside to the right of indicator panel / data series etc.
Yes yours appears correct BUT it is a different approach with stacked and a side panel
I am running ChartCustomToolBarExample.
Does the version exist you had prior where it included the sample of code above to make Visible which is where i based it upon?
I am trying to follow the logic as i stated to understand why they would all appear on the top menu on startup this is I made clear in my questions ;
If you are saying you scrapped the previous example and this is now the approach then please make that clear?
thanks
Leave a comment:
-
Hello soulfx,
Are you stating that the examples I have created are adding multiple buttons to the toolbar?
What is the issue you are reporting with the example I have created?
Leave a comment:
-
Hello, so i reloaded this indicator above and note that this format is now different in anycase that you have stacked the menu. I am not nor wanting to stack and my menu items appear along the main chart menu at the top. I have gone through the code to check why they appear all at once on startup but then when a tab is selected it is only visible for the selected tab henceforth (the correct behaviour)
On startup is historical state cycled twice or at least more than oncek checking the help guide it indicates it can be ? I do have a check with a boolean to mark if my toolbar menu is added in the historical state before going into the dispatch .....
Do you still have the version of your example that has been updated like this one which doesnt stack ie just adds to the main chart menu at the top?
So to confirm in running your example when i startup i only see the menu item for one tab. I see there is a tabselected check .... in the prior version it uses the
////Make sure we are visible on all tabs
foreach (System.Windows.Controls.TabItem currentTab in _chartWindow.MainTabControl.Items)
{
if ((currentTab.Content as ChartTab).ChartControl == ChartControl && currentTab == _chartWindow.MainTabControl.SelectedItem)
{
_xxA.Visibility = System.Windows.Visibility.Visible;
_xxB.Visibility = System.Windows.Visibility.Visible;
_xxSeparator.Visibility = System.Windows.Visibility.Visible;
_xxP.Visibility = System.Windows.Visibility.Visible;
}
}
i dont see this in your code anywhere now
thanksLast edited by soulfx; 10-23-2017, 11:58 AM.
Leave a comment:
-
Hello soulfx,
To confirm you are testing the script found here:
Hello All, Moving forward this will be maintained in the help guide reference samples and no longer maintained on the forum. Creating Chart WPF (UI) Modifications from an Indicator - https://ninjatrader.com/support/help...ui)-modifi.htm (https://ninjatrader.com/support/helpGuides/nt8/creating-chart-wpf-(ui)-modifi.htm) I've
I am not able to reproduce this behavior. Below is a link to a video I have recorded using 8.0.9.0 testing the indicator added to multiple tabs, as well as a tab with no indicator, and starting with and without connect on startup.
World's leading screen capture + recorder from Snagit + Screencast by Techsmith. Capture, edit and share professional-quality content seamlessly.
Using the example script, with the steps taken in the video, are you experiencing different behavior than what is shown in the video?Last edited by NinjaTrader_ChelseaB; 10-18-2017, 02:55 PM.
Leave a comment:
-
menu items appearing in the chart menu at top
Hello, In reference to the ChartCustomToolBarExample ; i based my code from some of this structure a while back.
And i have various menu items appearing on the main menu for certain tabs where a specific indicator is loaded.
This works well in general ; however when i start ninja (without a connection / or with a connect on startup) it seems all the menus items for each of the tabs (where the indicator is loaded) all appear along the top menu bar of the chart. Until i select a tab then the others clear and i now only have the menu items for the selected tab in focus.
Is there something i additionally need to do in order to Not have all the items appear when starting. Is it the case when starting ninja with multiple tabs in a chart no tab has been selected so it is not clear which items to make invisible which is handled in the tab selection handler ?
thanks
Leave a comment:
-
Hello Jesse,
Thanks for the quick response. While changing the width of the added panel can be achieved easily as per your suggestion, placing the panel on the left side of the NT chart proves to be rather difficult. Setting chartGrid to HorizontalAlignment.Left resulted in pushing both the NT chart and added panel to the left side of the canvas with a wide area of transparent canvas on the right.
Anyways, having the panel buttons on the right side of the charts does not look so bad any more.
Leave a comment:
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by cmoran13, 04-16-2026, 01:02 PM
|
0 responses
51 views
0 likes
|
Last Post
by cmoran13
04-16-2026, 01:02 PM
|
||
|
Started by PaulMohn, 04-10-2026, 11:11 AM
|
0 responses
31 views
0 likes
|
Last Post
by PaulMohn
04-10-2026, 11:11 AM
|
||
|
Started by CarlTrading, 03-31-2026, 09:41 PM
|
1 response
165 views
1 like
|
Last Post
|
||
|
Started by CarlTrading, 04-01-2026, 02:41 AM
|
0 responses
100 views
1 like
|
Last Post
by CarlTrading
04-01-2026, 02:41 AM
|
||
|
Started by CaptainJack, 03-31-2026, 11:44 PM
|
0 responses
160 views
2 likes
|
Last Post
by CaptainJack
03-31-2026, 11:44 PM
|
Leave a comment: