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 10-09-2008, 09:16 AM   #1
Mindset
Senior Member
 
Join Date: Mar 2008
Location: UK West Sussex
Posts: 667
Thanks: 10
Thanked 11 times in 8 posts
Default No Plot but it compiles?

Absolute beginner at this.
It all looks logical but I am not getting either plot.
Attached Files
File Type: zip closeBlobnt.zip (1.8 KB, 5 views)
Mindset is offline  
Reply With Quote
Old 10-09-2008, 09:19 AM   #2
NinjaTrader_Josh
NinjaTrader Product Manager
 
NinjaTrader_Josh's Avatar
 
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 107 times in 70 posts
Default

First step when things don't plot is to check the errors log. You are likely running into the error addressed by this article: http://www.ninjatrader-support.com/v...ead.php?t=3170
NinjaTrader_Josh is offline  
Reply With Quote
Old 10-09-2008, 09:23 AM   #3
Mindset
Senior Member
 
Join Date: Mar 2008
Location: UK West Sussex
Posts: 667
Thanks: 10
Thanked 11 times in 8 posts
Default God I hate being a newbie!

thanks Josh - I expect to ask many more simple questions before I get the hang of this - but 3 minutes to solve a problem must be some sort of record :-)
Mindset is offline  
Reply With Quote
Old 10-09-2008, 09:32 AM   #4
NinjaTrader_Josh
NinjaTrader Product Manager
 
NinjaTrader_Josh's Avatar
 
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 107 times in 70 posts
Default

Hah. The record is around 30 seconds.
NinjaTrader_Josh is offline  
Reply With Quote
Old 10-09-2008, 09:36 AM   #5
Mindset
Senior Member
 
Join Date: Mar 2008
Location: UK West Sussex
Posts: 667
Thanks: 10
Thanked 11 times in 8 posts
Default Respect


So you are hot on the line waiting for the next simple one!
Mindset is offline  
Reply With Quote
Old 10-09-2008, 09:39 AM   #6
NinjaTrader_Josh
NinjaTrader Product Manager
 
NinjaTrader_Josh's Avatar
 
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 107 times in 70 posts
Default

If we can assist you in any other way please feel free to post in a new thread. We will work to answer your questions. Thanks and have a good day trading.
NinjaTrader_Josh is offline  
Reply With Quote
Old 10-09-2008, 11:14 AM   #7
Mindset
Senior Member
 
Join Date: Mar 2008
Location: UK West Sussex
Posts: 667
Thanks: 10
Thanked 11 times in 8 posts
Default How do I get the value of a line?

In easylanguage I can change the color of a plot quite simply but how do I do it in NinjaScript.
At the mmoment I am trying to use two plots to cope with a condition.

This is my current effort. Which doesn't work ( the commented out section)
Attached Files
File Type: zip EMA2.zip (1.9 KB, 3 views)
Mindset is offline  
Reply With Quote
Old 10-09-2008, 11:19 AM   #8
NinjaTrader_Josh
NinjaTrader Product Manager
 
NinjaTrader_Josh's Avatar
 
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 107 times in 70 posts
Default

Mindset,

We would appreciate it if you posted new questions in a new thread. This way we can help build up a knowledge base that other users can search through more easily.

To check against a plot you need to use the indexing. Your plot is named Value. To check its values you would do Value[0] for the value at the current bar of the FIRST DataSeries plot in your indicator. Please see the Help Guide for Value to better understand how it is used. You will also have difficulty with your code because EMA is a reserved word taken by another indicator. You cannot name your DataSeries EMA.
NinjaTrader_Josh is offline  
Reply With Quote
Old 10-09-2008, 11:23 AM   #9
Mindset
Senior Member
 
Join Date: Mar 2008
Location: UK West Sussex
Posts: 667
Thanks: 10
Thanked 11 times in 8 posts
Default Sure

Thanks for the heads up.
Will do that in future.
Mindset 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
plot last ask/bid junkone Indicator Development 3 09-24-2008 06:50 AM
how to plot bid and ask junkone Charting 1 09-22-2008 04:06 AM
It's all about the Plot mgbloomfield Indicator Development 4 04-17-2008 07:03 PM
Indicator compiles, not in list maxpi Charting 2 07-23-2007 09:55 AM
[NT6 bug?] Compiles the wrong indicator FireFly General Programming 2 04-28-2007 06:45 PM


All times are GMT -6. The time now is 02:39 AM.