NinjaTrader Support Forum  

Go Back   NinjaTrader Support Forum > NinjaScript Development Support > Indicator Development

Indicator Development Support for the development of custom indicators using NinjaScript.

Reply
 
Thread Tools Display Modes
Old 01-07-2010, 09:45 AM   #1
mefTrader
Senior Member
 
Join Date: Nov 2009
Posts: 205
Thanks: 0
Thanked 0 times in 0 posts
Default Histogram Bar width

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
mefTrader is offline  
Reply With Quote
Old 01-07-2010, 09:57 AM   #2
NinjaTrader_Bertrand
NinjaTrader Customer Service
 
NinjaTrader_Bertrand's Avatar
 
Join Date: Sep 2008
Location: Germany
Posts: 22,565
Thanks: 261
Thanked 1,015 times in 996 posts
Default

mefTrader, you would need to query Intellisense on this for available overloads, for example use -

Code:
 
Plots[1].Pen.Width = 3;
to set plot width progammatically.
NinjaTrader_Bertrand is online now  
Reply With Quote
Old 08-04-2012, 08:17 PM   #3
zoom zoom 126
Junior Member
 
Join Date: May 2011
Posts: 13
Thanks: 0
Thanked 1 time in 1 post
Smile changing width of histogram bar with conditional

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#?
zoom zoom 126 is offline  
Reply With Quote
Old 08-06-2012, 02:15 AM   #4
NinjaTrader_Bertrand
NinjaTrader Customer Service
 
NinjaTrader_Bertrand's Avatar
 
Join Date: Sep 2008
Location: Germany
Posts: 22,565
Thanks: 261
Thanked 1,015 times in 996 posts
Default

Unfortunately you could not change / set this property dynamically. This is done on a per plot basis.
NinjaTrader_Bertrand is online now  
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

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


All times are GMT -6. The time now is 06:33 AM.