I want to add a slider panel like chartTrader, to slide out with a button click. What will be the best way forward. It will have slide out and slide back like normal charttrader operation on a chart. any advice will be appreciated.
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
Slider panel like chart Trader
Collapse
X
-
Slider panel like chart Trader
Hi,
I want to add a slider panel like chartTrader, to slide out with a button click. What will be the best way forward. It will have slide out and slide back like normal charttrader operation on a chart. any advice will be appreciated.Tags: None
-
Hello asmmbillah,
The chart trader uses the WPF Visibility state for this of collapsed hidden or visible: https://docs.microsoft.com/en-us/dot...tframework-4.5
Whatever WPF control you create could also do a similar task to hide its self. The ChartTrader doesn't specifically have any kind of animations so sliding or anything like that would be a custom WPF solution. You can find some example of WPF development in the following post:
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 look forward to being of further assistance.JesseNinjaTrader Customer Service
-
Thanks for your reply. I am trying to use window for the attached example I found in this forum to show, at the top left corner of a chart window. But for some reason it showing in different locations and different monitors. Can you advise, how I can use the visibility state for a wpf created window for NT8 to be visible and hidden state for a chart where the indicator is attached. file attached.
Comment
-
Hello asmmbillah,
A "Window" would be controlled by minimizing it hiding it, or you can close it and show it again later.
As you are working with WPF windows and not NinjaScript here you can learn about these concepts in C# education tutorials or by searching online. You could search for "control WPF window location" as one example. The Top and Left properties can be used to set exact positioning for the window, you can also review the WindowStartupLocation property.
The visibility state would generally be used for wpf controls inside your window to hide or show them.
Please let me know if I may be of further assistance.
JesseNinjaTrader Customer Service
Comment
-
thanks for your reply, wpf did not go anywhere. Trying to use below within ninjascript
NTWindow window = new NTWindow()
{
Height = 300,
Width = 200,
Topmost = true,
WindowStartupLocation = WindowStartupLocation.CenterScreen,
Caption = "parameter test"
};
but it is coming in the centre of the chart window. any idea about how to take it top left corner of that chart window showing with a rectangle in screenshot.1 Photo
Comment
-
Hello asmmbillah,
Are you trying to draw a rectangle in the chart window or make your own window?
A custom window is not a control you can add to another window so the position you have shown would not be valid for an external window. If you mean to make a panel inside the existing window you need to use a WPF control and place it in either the existing window or on the UserControlCollection. The closest you could come to finding the position you have shown would be the existing windows Top and Left properties, or its general location.
Please let me know if I may be of further assistance.JesseNinjaTrader Customer Service
Comment
-
Thanks, I am not trying to draw a rectangle or make my own window. I am trying to get the indicator property ie, parameter, settings etc.
Comment
-
Thanks for your reply. Since my last but previous post, I have tried different options, but could not achieve what I am looking for. Now on my last post, I mentioned that I am trying to get indicator properties like the screenshot attached. I want to keep the OK, cancel and Apply button as well. Thanks in advance.1 Photo
Comment
-
Hello asmmbillah,
If you are trying to access the properties of your indicator you can just use the instance of it that you have:
Code:SMA mySma = SMA(12); Print(mySma.Period);
If you mean to make some kind of quick access to change properties you can either define custom buttons to increment/change properties in your indicator for future calculations, this would not affect any historical data. Or you can just use the existing properties menu to actually update the property. Using the menu invokes the reload on the indicator which would be necessary if any properties were to change so the historical is recalculated.
Please let me know if I may be of further assistance.JesseNinjaTrader Customer Service
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by Aviram Y, Today, 05:29 AM
|
0 responses
1 view
0 likes
|
Last Post
by Aviram Y
Today, 05:29 AM
|
||
Started by quantismo, 04-17-2024, 05:13 PM
|
3 responses
25 views
0 likes
|
Last Post Today, 05:23 AM | ||
Started by ScottWalsh, 04-16-2024, 04:29 PM
|
7 responses
34 views
0 likes
|
Last Post Today, 05:15 AM | ||
Started by cls71, Today, 04:45 AM
|
0 responses
6 views
0 likes
|
Last Post
by cls71
Today, 04:45 AM
|
||
Started by mjairg, 07-20-2023, 11:57 PM
|
3 responses
216 views
1 like
|
Last Post
by PaulMohn
Today, 04:22 AM
|
Comment