NinjaTrader Support Forum  
X

Attention!

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


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

Strategy Development Support for the development of custom automated trading strategies using NinjaScript.

Reply
 
Thread Tools Display Modes
Old 06-15-2008, 07:21 AM   #1
raz0rback
Member
 
Join Date: May 2008
Posts: 43
Thanks: 0
Thanked 0 times in 0 posts
Default Strategy plots. Syntax for referencing lines

I have tried for the last couple of days to figure out how to reference a plot line that is part of an indicator with one or more plot lines.

example. the stochastic. I can use:

Stochastics(7,14,6).Plots[0].Pen.Color = Color.Red;

However this only sets the D plot line.

I would like to know how to reference the K line, both for colors and for other display properties.

Cheers.
raz0rback is offline  
Reply With Quote
Old 06-15-2008, 07:52 AM   #2
NinjaTrader_Josh
NinjaTrader Product Manager
 
NinjaTrader_Josh's Avatar
 
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 106 times in 70 posts
Default

Please see this tip: http://www.ninjatrader-support.com/v...ead.php?t=3228

To access different ones you would change the Plots[0] to maybe Plots[1] or Plots[2] etc.
NinjaTrader_Josh is offline  
Reply With Quote
Old 06-15-2008, 09:06 AM   #3
raz0rback
Member
 
Join Date: May 2008
Posts: 43
Thanks: 0
Thanked 0 times in 0 posts
Default

Josh,

Thanks so much mate. Appreciate the assistance.

I knew it would be simple.

Stephen.
raz0rback 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
Accessing Multiple Custom Indicator Plots within a Strategy whitmark Strategy Development 15 03-28-2009 04:21 PM
Syntax for adding Woodies Pivots to strategy raz0rback Strategy Development 1 06-15-2008 07:54 AM
Changing colors of plots added to strategy kegrande Strategy Development 3 05-30-2008 02:27 AM
Please add the 'panel' parameter for plots created within the Strategy Wizard Elliott Wave Strategy Development 3 05-03-2008 04:04 PM
Managing Plots for Strategy vs Presentation whitmark Strategy Development 3 06-14-2007 07:25 AM


All times are GMT -6. The time now is 02:46 PM.