![]() |
This website will be down for maintenance from Friday May 24th at 6PM MDT until Saturday May 25th at 11AM MDT. We apologize for the inconvenience. If you need assistance during this time, please email sales@ninjatrader.com
|
|||||||
| Indicator Development Support for the development of custom indicators using NinjaScript. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Junior Member
Join Date: May 2008
Posts: 28
Thanks: 1
Thanked 0 times in 0 posts
|
Let's say I have 2 existing indicators: A, B. I want to create another indicator X that includes information from A and B. Without changing A and B at all, how can I access all the information about A and B?
I found this: IndicatorA(Param1, Param2, etc.).Value[0] worked to get me the value of one of them. But how do I get the color (the color changes over time in this indicator)? Also, one of them is a paintbar, so I want to get the color of that, too. Thanks! |
|
|
|
|
|
#2 | |
|
Administrator
Join Date: Nov 2004
Location: Denver, CO, USA
Posts: 11,163
Thanks: 6
Thanked 45 times in 32 posts
|
Quote:
http://www.ninjatrader-support2.com/...ead.php?t=4991
Ray
NinjaTrader Customer Service |
|
|
|
|
|
|
#3 |
|
Junior Member
Join Date: May 2008
Posts: 28
Thanks: 1
Thanked 0 times in 0 posts
|
If I understand your answer correctly, it doesn't satisfy my question. I said, without changing indicator A or B. Are you saying that there is no way to find out the color of a plot in another indicator?
|
|
|
|
|
|
#4 | |
|
Certified NinjaScript Consultant
|
Quote:
You can access it (if it is regular plot) Color mycolor = IndicatorA().Plots[0].Pen.Color; |
|
|
|
|
|
|
#5 |
|
Junior Member
Join Date: May 2009
Posts: 26
Thanks: 0
Thanked 1 time in 1 post
|
I have a 3rd party indicator which plots a line. The line can be one of 3 colors. I want to be able to access the current color in a strategy. Is there any way to do this? I can't see that they've exposed any public property to indicate the current color.
|
|
|
|
|
|
#6 |
|
NinjaTrader Customer Service
Join Date: Sep 2008
Location: Germany
Posts: 22,397
Thanks: 252
Thanked 968 times in 951 posts
|
saturntd, welcome to our forums! Can you access the third party indicator code? Then it would be easiest to work with the conditions leading to the line color changes...
Bertrand
NinjaTrader Customer Service |
|
|
|
|
|
#7 |
|
Junior Member
Join Date: May 2009
Posts: 26
Thanks: 0
Thanked 1 time in 1 post
|
Bertrand thanks for the response. I can't access their code it's proprietary.
|
|
|
|
|
|
#8 |
|
NinjaTrader Customer Service
Join Date: Sep 2008
Location: Germany
Posts: 22,397
Thanks: 252
Thanked 968 times in 951 posts
|
Then you should contact them and ask to add exposed indicator / signal states to their next revision if possible.
Bertrand
NinjaTrader Customer Service |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Access to .dll indicator | ct | Indicator Development | 16 | 07-15-2010 11:31 AM |
| Indicator Attributes for Strategy Question | Faspomy | Strategy Development | 6 | 10-03-2008 12:39 PM |
| Access to same indicator with different periods | snaphook | General Programming | 1 | 09-08-2008 06:54 AM |
| Conditioner Builder Indicator Access | lpart | Strategy Development | 7 | 10-06-2007 03:45 PM |
| DOM access within indicator | RedDuke | Indicator Development | 6 | 09-25-2007 10:24 AM |