Is this possible?
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
How to access collection of exisiting indicators on a chart
Collapse
X
-
How to access collection of exisiting indicators on a chart
In my custom indicator, I would like to access another indicator on the same chart and set some of its properties. So...I need both the collection of indicators on the chart and some way to determine the class of each indicator.
Is this possible?Tags: None
-
Hello lel4866,
Thanks for your post.
This would be possible to do through reflection and looping through the ChartControl.Indicators collection, however we generally would not support reflecting another indicator to change that indicator's properties.
If you would like to pursue this unsupported approach, you could reference the Facebook ShareService's CopyTo() method for an example using reflection. External resources can also provide further direction for using reflection.
StackOverflow C# getting its own class name - https://stackoverflow.com/questions/...own-class-name
Please let us know if we can be of further assistance.Last edited by NinjaTrader_Jim; 05-11-2018, 07:46 AM.
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by SalmaTrader, 07-07-2026, 10:26 PM
|
0 responses
30 views
0 likes
|
Last Post
by SalmaTrader
07-07-2026, 10:26 PM
|
||
|
Started by CarlTrading, 07-05-2026, 01:16 PM
|
0 responses
17 views
0 likes
|
Last Post
by CarlTrading
07-05-2026, 01:16 PM
|
||
|
Started by CaptainJack, 06-17-2026, 10:32 AM
|
0 responses
9 views
0 likes
|
Last Post
by CaptainJack
06-17-2026, 10:32 AM
|
||
|
Started by kinfxhk, 06-17-2026, 04:15 AM
|
0 responses
16 views
0 likes
|
Last Post
by kinfxhk
06-17-2026, 04:15 AM
|
||
|
Started by kinfxhk, 06-17-2026, 04:06 AM
|
0 responses
19 views
0 likes
|
Last Post
by kinfxhk
06-17-2026, 04:06 AM
|

Comment