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
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
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
-
BertrandNinjaTrader Customer Service
-
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 Padan, Today, 02:02 AM
|
9 responses
21 views
0 likes
|
Last Post Today, 03:27 PM | ||
Started by spottysallrite, Today, 11:31 AM
|
7 responses
22 views
0 likes
|
Last Post Today, 03:26 PM | ||
Started by nandhumca, Today, 03:15 PM
|
1 response
4 views
0 likes
|
Last Post Today, 03:23 PM | ||
Started by PopovDS, 03-11-2024, 12:49 PM
|
3 responses
17 views
0 likes
|
Last Post
by PopovDS
Today, 03:16 PM
|
||
Started by Lele2k24, Yesterday, 11:24 AM
|
12 responses
37 views
0 likes
|
Last Post Today, 03:07 PM |
Comment