Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Create a similar custom tabs.
Collapse
X
-
Create a similar custom tabs.
I need to add a new option under Tools (eg:- YZControl) which opens the Custom Tabs whose design is the same as the Alert box from that charts tab. From where I can start. I am just new to Ninja Traders. Do I need to write a similar code in WPF for the design of Alert Box?
Tags: None
-
Hello birazdhl,
Thank you for the post.
To create a new option under one of the menus you can see the Addon sample, that creates a menu item in the New menu but you could also replicate that logic to target other menus like the Tools menu.
https://ninjatrader.com/support/help...t_overview.htm (AddOn Framework NinjaScript Basic, see the OnWindowCreated override for menu adding logic )
To find other menus or areas of the platform you can look for automation ID's. Microsoft has a tool called inspect which can be used for that purpose. https://docs.microsoft.com/en-us/win...ectedfrom=MSDN the tools menu is ControlCenterMenuItemTools
To create controls with the NinjaTrader styles you can just use regular WPF controls or the NinjaTrader controls where applicable. https://ninjatrader.com/support/help...8/controls.htm
The addon sample I linked above contains a full sample window, that is generally a good starting point if you are trying to make some type of custom tool. It shows how to access data and do other account related tasks. While the sample is large it is a complete tool showing most WPF related concepts.
I look forward to being of further assistance.Last edited by NinjaTrader_Jesse; 12-21-2020, 10:51 AM.JesseNinjaTrader Customer Service
-
Hello birazdhl,
Thank you for the reply.
if you are making a new window yourself then yes you would need to make the WPF for whatever you wanted to make.
When you say alert box what specifically are you referring to? Are you asking to make a pop up alert with a message?
I look forward to being of further assistance.JesseNinjaTrader Customer Service
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by cmtjoancolmenero, Yesterday, 03:58 PM
|
1 response
17 views
0 likes
|
Last Post Today, 06:16 AM | ||
Started by benmarkal, Yesterday, 12:52 PM
|
3 responses
23 views
0 likes
|
Last Post Today, 05:22 AM | ||
Started by helpwanted, Today, 03:06 AM
|
1 response
20 views
0 likes
|
Last Post Today, 03:35 AM | ||
Started by Brevo, Today, 01:45 AM
|
0 responses
11 views
0 likes
|
Last Post
by Brevo
Today, 01:45 AM
|
||
Started by pvincent, 06-23-2022, 12:53 PM
|
14 responses
244 views
0 likes
|
Last Post
by Nyman
Today, 12:47 AM
|
Comment