I am adding a column and a row for my indicator at the left margin of the chart where my indicator is added, but when I am adding 2nd instance of the indicator to the same chart, it is adding another column after the previous column which was added by the 1st instance of the same indicator. Is there a way to check or avoid not to add column where as a column added to the grid by 1st instance of the same indicator?
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
Avoid adding new column to the grid for the 2nd instance
Collapse
X
-
Avoid adding new column to the grid for the 2nd instance
Hi,
I am adding a column and a row for my indicator at the left margin of the chart where my indicator is added, but when I am adding 2nd instance of the indicator to the same chart, it is adding another column after the previous column which was added by the 1st instance of the same indicator. Is there a way to check or avoid not to add column where as a column added to the grid by 1st instance of the same indicator?Tags: None
-
Hello asmmbillah,
You can use the automation ID system to set ID's to your custom controls, that is the system used to find controls like ChartTrader by using FindFirst or GetAutomationId(). You can see a sample of setting/getting an automation id in the following post:
Trader Control - How to reset my code when user clicks on the Chart Tabs - NinjaTrader Support ForumGeneral platform technical support for NinjaTrader 8.
Please let me know if I may be of further assistance.JesseNinjaTrader Customer Service
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by kevinenergy, 02-17-2023, 12:42 PM
|
118 responses
2,778 views
1 like
|
Last Post
by kevinenergy
Today, 05:41 AM
|
||
Started by briansaul, Today, 05:31 AM
|
0 responses
9 views
0 likes
|
Last Post
by briansaul
Today, 05:31 AM
|
||
Started by traderqz, Yesterday, 12:06 AM
|
11 responses
28 views
0 likes
|
Last Post Today, 05:11 AM | ||
Started by PaulMohn, Today, 03:49 AM
|
0 responses
8 views
0 likes
|
Last Post
by PaulMohn
Today, 03:49 AM
|
||
Started by inanazsocial, Today, 01:15 AM
|
1 response
10 views
0 likes
|
Last Post Today, 02:18 AM |
Comment