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 02-04-2008, 02:52 PM   #1
NinjaCustomer
Senior Member
 
Join Date: Jan 2008
Posts: 130
Thanks: 0
Thanked 0 times in 0 posts
Question How to draw a Dotted Line?

right now I have:

Add(new Line(Color.Red, 15, "Level"));

in Initialize() of an Indicator

how can I change this to create a dotted line, not solid?


likewise, how do I make a new Plot that has a width of 2 for my PlotStyle.Bar?
Last edited by NinjaCustomer; 02-04-2008 at 02:55 PM.
NinjaCustomer is offline  
Reply With Quote
Old 02-04-2008, 04:02 PM   #2
NinjaTrader_Ray
Administrator
 
NinjaTrader_Ray's Avatar
 
Join Date: Nov 2004
Location: Denver, CO, USA
Posts: 11,164
Thanks: 6
Thanked 46 times in 32 posts
Default

Plots[0].Pen.DashStyle = DashStyle.Dot;
Plots[0].Pen.Width = 2
NinjaTrader_Ray is offline  
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
Draw line segments PepeIlegal Charting 9 09-27-2011 11:22 PM
Draw Horizontal line on the hour dynamically dpanglin General Programming 7 04-05-2008 11:25 AM
Draw Vertical Line jjthetrader General Programming 13 01-30-2008 10:12 AM
Dotted Line as default jeremymgp Indicator Development 9 01-30-2008 09:33 AM
how to draw a parallel line to a trend line? tradewiz Charting 4 12-19-2007 04:42 AM


All times are GMT -6. The time now is 04:51 AM.