![]() |
|
|||||||
| Indicator Development Support for the development of custom indicators using NinjaScript. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Senior Member
Join Date: Nov 2009
Posts: 205
Thanks: 0
Thanked 0 times in 0 posts
|
In my indicator PLot Style how do I change the Bar width from 1px to 2px?
Add(new Plot(Color.FromKnownColor(KnownColor.Orange), PlotStyle.Bar, "Trend")); Where is the complete description of PLot that gives all the parameters? Dont see it here @ http://www.ninjatrader-support.com/HelpGuideV6 |
|
|
|
|
|
#2 |
|
NinjaTrader Customer Service
Join Date: Sep 2008
Location: Germany
Posts: 22,565
Thanks: 261
Thanked 1,015 times in 996 posts
|
mefTrader, you would need to query Intellisense on this for available overloads, for example use -
Code:
Plots[1].Pen.Width = 3;
Bertrand
NinjaTrader Customer Service |
|
|
|
|
|
#3 |
|
Junior Member
Join Date: May 2011
Posts: 13
Thanks: 0
Thanked 1 time in 1 post
|
I have a similar question:
I want to change the width of the histogram bar if the value is declining and increase the width if the value is increasing. Plots [0].Pen. Width = 4; if(Rising(AD) ) { Plots[0].Pen.Width = 6; } This code does not work. Is this technique possible in C#? |
|
|
|
|
|
#4 |
|
NinjaTrader Customer Service
Join Date: Sep 2008
Location: Germany
Posts: 22,565
Thanks: 261
Thanked 1,015 times in 996 posts
|
Unfortunately you could not change / set this property dynamically. This is done on a per plot basis.
Bertrand
NinjaTrader Customer Service |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Bar Spacing Changes Bar Width | shawnj | Charting | 5 | 01-03-2011 12:29 PM |
| Bar Width | jerryvellutini | Indicator Development | 1 | 11-05-2009 06:22 AM |
| Bar Width | Berto | Charting | 18 | 09-09-2009 05:15 AM |
| Bar Width | rt-trader | General Programming | 6 | 06-04-2009 09:35 AM |
| Bar width auto change with zoom | njnja | General Programming | 1 | 04-24-2009 07:48 AM |