![]() |
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 |
|
Certified NinjaScript Consultant
Join Date: Sep 2006
Location: New York, USA
Posts: 774
Thanks: 1
Thanked 7 times in 5 posts
|
Hey guys.
I have been working on a multiple colored plot based on one MA above / below another MA. I have read a few posts and tried different coding techniques to try and get this to work to no avail. Basically, all I'm trying to do is have the MA lines plot one color if MA1 > MA2, and another color if MA1 < MA2. I am able to get this to work using 4 different indicator plots. MA1up, MA2up, MA1dn, MA2dn. My problem is that on the initial change in color I have all 4 plots showing at once, and since you have to connect the plots using the .Set(1, MA[1]), I get the change in color displayed one bar earlier before the cross takes place. I have attached the indicator. Thanks for your help. Anthony |
|
|
|
|
|
#2 |
|
Administrator
Join Date: Mar 2005
Location: Bamberg, Germany
Posts: 9,994
Thanks: 0
Thanked 6 times in 6 posts
|
Didn't the reference sample work for you? http://www.ninjatrader-support.com/v...ead.php?t=3227
Dierk
NinjaTrader Customer Service |
|
|
|
|
|
#3 |
|
Certified NinjaScript Consultant
Join Date: Sep 2006
Location: New York, USA
Posts: 774
Thanks: 1
Thanked 7 times in 5 posts
|
Yes sir.
It works except when it changes color, it plots back 1 bar (.Set(1, MA[1])), which gives the new color 1 bar back over the previous color. Know what I mean? |
|
|
|
|
|
#4 |
|
Administrator
Join Date: Mar 2005
Location: Bamberg, Germany
Posts: 9,994
Thanks: 0
Thanked 6 times in 6 posts
|
Hmm, this then would appear to be a limitation. NT7 will come with next multi color support.
Dierk
NinjaTrader Customer Service |
|
|
|
|
|
#5 |
|
Certified NinjaScript Consultant
Join Date: Sep 2006
Location: New York, USA
Posts: 774
Thanks: 1
Thanked 7 times in 5 posts
|
Thanks for the reply Dierk.
Do you have any idea around when NT7 is slated for release? Also, is added Oanda brokerage support part of this release? Thanks |
|
|
|
|
|
#6 |
|
Administrator
Join Date: Mar 2005
Location: Bamberg, Germany
Posts: 9,994
Thanks: 0
Thanked 6 times in 6 posts
|
NT7 beta is scheduled for end of this year. Right now we don't have anything scheduled on Oanda support.
Dierk
NinjaTrader Customer Service |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Strategy Plots Multi Instrument | raz0rback | Strategy Development | 25 | 08-23-2011 10:11 AM |
| Double EMA Multi Colored | Rollins | NinjaScript File Sharing Discussion | 14 | 01-13-2009 07:18 AM |
| Indicator: Multi-Colored Plots | NinjaTrader_Josh | Reference Samples | 0 | 09-06-2007 01:28 PM |
| Multi Colored plots. | higler | General Programming | 6 | 05-10-2007 12:05 PM |
| Plots[?].Min & Plots[?].Max Don't work | AlohaBob | Indicator Development | 6 | 01-06-2007 08:31 PM |