NinjaTrader Support Forum  

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 09-16-2010, 02:40 PM   #1
gg80108
Senior Member
 
Join Date: Dec 2008
Location: Castle Pines, Co
Posts: 621
Thanks: 1
Thanked 2 times in 2 posts
Default Plot0 a protected word

Is Plot0 a protected word? I have used similar syntax as below and worked ok.

myStrategy:

DiffIndex = DiffIndex(3,14,3,10).Plot0.Get(CurrentBar);

here is whats in indicator:

[Browsable(false)] // this line prevents the data series from being displayed in the indicator properties dialog, do not remove
[XmlIgnore()] // this line ensures that the indicator can be saved/recovered as part of a chart template, do not remove
public DataSeries Plot0
{
get { return Values[2]; }
gg80108 is offline  
Reply With Quote
Old 09-16-2010, 02:45 PM   #2
NinjaTrader_RyanM
NinjaTrader Customer Service
 
NinjaTrader_RyanM's Avatar
 
Join Date: Sep 2009
Location: Denver, CO
Posts: 8,117
Thanks: 249
Thanked 418 times in 415 posts
Default

Hello gg80108,

Plot0 isn't reserved, but is the default name for the first plot when creating indicators through the wizard.
NinjaTrader_RyanM 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
Plot0 Value on FirstTickOfBar palinuro Version 7 Beta General Questions & Bug Reports 3 10-31-2009 06:01 AM
Plot0.Set(Close[0]); vs Plot0.Set(Close[1]); amedhussaini General Programming 7 07-26-2009 10:02 AM
Plot0 velocity General Programming 5 07-23-2009 07:42 AM
Any word on keyboard support? Kovacs Miscellaneous Support 1 01-27-2009 01:42 PM
When using NT, is your IP protected? tradefaz Miscellaneous Support 4 08-25-2008 02:53 PM


All times are GMT -6. The time now is 08:22 AM.