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
Getting ChartTab
Collapse
X
-
Originally posted by Zeos6 View PostYes. Depends though on what you mean by get. What do you want to do with it?
Jokes aside: my indicators have a complex system to communicate with each other. In Nt7 I could use ChartId in the persistence department, but in Nt8 there are more tabs within a chart the indicator can be on so I'll need tabIds and all other info I can easily get if I have the actual ChartTab object the indicator is sitting on.
My problem is that I cannot seem to find a way to access the ChartTab as I can the ChartControl and the OwnerChart.Last edited by Zapzap; 06-13-2018, 12:05 PM.
Comment
-
Originally posted by Zapzap View PostMy problem is that I cannot seem to find a way to access the ChartTab as I can the ChartControl and the OwnerChart.
Comment
-
Originally posted by Zapzap View PostNow if we take this a step further: I guess getting all ChartTabs/ChartControls on a given Chart is not this simple, is it.
In the first case..
Code:Chart chartWindow = Window.GetWindow(ChartControl.Parent) as Chart; [COLOR=#0000ff]foreach[/COLOR](TabItem tab [COLOR=#0000ff]in [/COLOR][COLOR=#0000ff]this[/COLOR].chartWindow.MainTabControl.Items)
If your looking for all tabs in all windows.. you'll prob want to start with something like this..
Code:[COLOR=#0000ff]foreach [/COLOR]([COLOR=#080808]Window[/COLOR] [COLOR=#080808]window[/COLOR] [COLOR=#0000ff]in[/COLOR] [COLOR=#080808]NinjaTrader[/COLOR].[COLOR=#080808]Core[/COLOR].[COLOR=#080808]Globals[/COLOR].[COLOR=#080808]AllWindows[/COLOR]) { //do something }
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by Pattontje, Yesterday, 02:10 PM
|
2 responses
15 views
0 likes
|
Last Post
by Pattontje
Yesterday, 11:49 PM
|
||
Started by flybuzz, 04-21-2024, 04:07 PM
|
17 responses
229 views
0 likes
|
Last Post
by TradingLoss
Yesterday, 11:45 PM
|
||
Started by agclub, 04-21-2024, 08:57 PM
|
3 responses
17 views
0 likes
|
Last Post
by TradingLoss
Yesterday, 11:42 PM
|
||
Started by TradingLoss, 04-21-2024, 04:32 PM
|
4 responses
44 views
2 likes
|
Last Post
by TradingLoss
Yesterday, 11:40 PM
|
||
Started by cre8able, 04-17-2024, 04:16 PM
|
6 responses
57 views
0 likes
|
Last Post
by cre8able
Yesterday, 09:20 PM
|
Comment