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 06-30-2012, 02:54 PM   #1
AXELGREASER
Junior Member
 
Join Date: May 2012
Posts: 16
Thanks: 2
Thanked 2 times in 2 posts
Default Trying to get ATR to print on the Chart

I seem to be getting compiler errors when trying to get the ATR to print on the chart rather in an indicator window.

Here is my code: http://pastebin.com/sMKd0kXG

When I try to compile, I see this error:

CS0103 The name 'Plot0' does not exist in the current context. Line 43 Column 10.

Any ideas?

* Edited the link - didn't realize I had vented my frustrations in a comment...
Last edited by AXELGREASER; 06-30-2012 at 05:23 PM.
AXELGREASER is offline  
Reply With Quote
Old 06-30-2012, 04:17 PM   #2
koganam
Senior Member
 
Join Date: Feb 2008
Location: Durham, North Carolina, USA
Posts: 3,199
Thanks: 24
Thanked 1,224 times in 995 posts
Send a message via Skype™ to koganam
Default

Quote:
Originally Posted by AXELGREASER View Post
I seem to be getting compiler errors when trying to get the ATR to print on the chart rather in an indicator window.

Here is my code: http://pastebin.com/xtTbCrMd

When I try to compile, I see this error:

CS0103 The name 'Plot0' does not exist in the current context. Line 43 Column 10.

Any ideas?
You do not have a DataSeries called Plot0. You changed it. Refer to the Plot by its correct name: the one you changed it to in the Properties definition.
koganam is offline  
Reply With Quote
The following user says thank you to koganam for this post:
Old 06-30-2012, 05:29 PM   #3
AXELGREASER
Junior Member
 
Join Date: May 2012
Posts: 16
Thanks: 2
Thanked 2 times in 2 posts
Default

Thanks for the quick reply koganam! - I see what you mean.

I see I also forgot to add Overlay = true; to get it to print on the price area....
AXELGREASER 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
Adding a 14Day ATR to 5minute Chart mcirl2 Strategy Development 3 04-13-2011 04:52 AM
ATR on Price Chart boseman NinjaScript File Sharing Discussion 7 11-26-2009 03:37 AM
Adding ATR lines to a MACD chart midgetsnyper1 Indicator Development 1 08-10-2009 07:01 AM
ATR - calculate the ATR ticks for the last 7 days tomleeson General Programming 16 07-22-2009 02:49 PM
Display daily ATR on intraday chart cw30000 Charting 1 07-13-2009 07:57 AM


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