![]() |
|
|||||||
| Indicator Development Support for the development of custom indicators using NinjaScript. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Senior Member
Join Date: Aug 2008
Posts: 233
Thanks: 19
Thanked 5 times in 5 posts
|
Hi,
I'm trying to add another plot to an indicator, the two lines of code below work fine but I'm running into problems adding an additional plot. Code:
Add(new Plot(Color.FromKnownColor(KnownColor.Orange), PlotStyle.Line, "Plot0")); Code:
Plot0.Set(CurrentDayOHL().CurrentHigh[0] + 20 * TickSize); Code:
Add(new Plot(Color.FromKnownColor(KnownColor.Red), PlotStyle.Line, "Plot1")); Code:
Plot1.Set(CurrentDayOHL().CurrentOpen[0] + 40 * TickSize); Error: The name 'Plot1' does not exist in the current context. Thank you in advance, suprsnipes |
|
|
|
|
|
#2 |
|
Senior Member
Join Date: Jul 2008
Location: East Rochester, NY
Posts: 899
Thanks: 0
Thanked 19 times in 17 posts
|
You may want to check out the properties section and make an entry for your second plot there.
|
|
|
|
|
|
#3 |
|
Senior Member
Join Date: Aug 2008
Posts: 233
Thanks: 19
Thanked 5 times in 5 posts
|
Thanks alot
|
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How to add additional/optional parameters to an indicator? | isitpossible | Indicator Development | 2 | 08-11-2009 06:42 AM |
| License Key not received... | Pipskateer | Installation and Licensing | 3 | 03-17-2009 07:51 AM |
| Add a PlaySound() compilation error | Jim W. | Suggestions And Feedback | 3 | 01-24-2008 08:35 PM |
| About the support I've received | HelloHello | Automated Trading | 1 | 09-14-2007 10:13 PM |
| License Key not received | fanus | Installation and Licensing | 1 | 05-19-2006 12:30 AM |