I want to access the values from an indicator of the current chart. I would have a bollinger on a volume chart and i want the lower and upper values onbarupdate. I don't want to code the bollinger settings, the indicator should know what the charts bollinger is set to and return the current bollingers values for lower and upper. all the methods i have seen require me to set the bollinger properties in the code. The bollinger properties will be set by user via the chart, the indicator has to get the values of that bollinger, I don't want to have to recode the bollinger settings in the indicator that gets the values. When the bollinger properties are changed on the chart the indicator should get the values of the new bollinger. I wanted to use chartcontrol.indicators, but NT doesn't offer support on that. Any other ways?
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Accessing Indicator Values
Collapse
X
-
Accessing Indicator Values
Hi,
I want to access the values from an indicator of the current chart. I would have a bollinger on a volume chart and i want the lower and upper values onbarupdate. I don't want to code the bollinger settings, the indicator should know what the charts bollinger is set to and return the current bollingers values for lower and upper. all the methods i have seen require me to set the bollinger properties in the code. The bollinger properties will be set by user via the chart, the indicator has to get the values of that bollinger, I don't want to have to recode the bollinger settings in the indicator that gets the values. When the bollinger properties are changed on the chart the indicator should get the values of the new bollinger. I wanted to use chartcontrol.indicators, but NT doesn't offer support on that. Any other ways?Tags: None
-
You may want to read this thread to show you how to determine what indicators are on the chart. After that it is simply a matter of querying the properties of the relevant indicator. The code shows how I queried the name. Once you have the name, you use standard OOP syntax to access the properties that you want to read.Originally posted by floyd084 View PostHi,
I want to access the values from an indicator of the current chart. I would have a bollinger on a volume chart and i want the lower and upper values onbarupdate. I don't want to code the bollinger settings, the indicator should know what the charts bollinger is set to and return the current bollingers values for lower and upper. all the methods i have seen require me to set the bollinger properties in the code. The bollinger properties will be set by user via the chart, the indicator has to get the values of that bollinger, I don't want to have to recode the bollinger settings in the indicator that gets the values. When the bollinger properties are changed on the chart the indicator should get the values of the new bollinger. I wanted to use chartcontrol.indicators, but NT doesn't offer support on that. Any other ways?
ref: http://www.ninjatrader.com/support/f...ad.php?t=52225
Comment
-
Further help needed.
Originally posted by koganam View PostYou may want to read this thread to show you how to determine what indicators are on the chart. After that it is simply a matter of querying the properties of the relevant indicator. The code shows how I queried the name. Once you have the name, you use standard OOP syntax to access the properties that you want to read.
ref: http://www.ninjatrader.com/support/f...ad.php?t=52225
Do you have any example codes? Im not a programmer by trade so im not very familiar with syntax, have to trial and error everything. I can seem to get a string that shows "upper band" or "lower band" but not the actual numbers.
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
579 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
334 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
101 views
0 likes
|
Last Post
by Mindset
02-09-2026, 11:44 AM
|
||
|
Started by Geovanny Suaza, 02-02-2026, 12:30 PM
|
0 responses
554 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
551 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment