NinjaTrader Support Forum  

Go Back   NinjaTrader Support Forum > NinjaScript Development Support > General Programming

General Programming General NinjaScript programming questions.

Reply
 
Thread Tools Display Modes
Old 08-20-2010, 09:49 AM   #1
occam
Member
 
Join Date: Aug 2010
Posts: 89
Thanks: 0
Thanked 0 times in 0 posts
Send a message via Skype™ to occam
Default Simple indicator

I am trying out Ninja Trader so I am learning.

How do I create a simple indicator based on daily close history that does not need to be plotted. That is all I want is just a column of data.
occam is offline  
Reply With Quote
Old 08-20-2010, 09:53 AM   #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 Occam,

If you're looking for a column of data, then consider Market Analyzer. You can set this up with no custom programming.

See here for an introduction to Market Analyzer.

You can add the standard indicators here as well as any custom ones. Let us know exactly what you're looking for and we'll be able to help with whether this requires custom programming or is already offered.
NinjaTrader_RyanM is offline  
Reply With Quote
Old 08-20-2010, 10:03 AM   #3
occam
Member
 
Join Date: Aug 2010
Posts: 89
Thanks: 0
Thanked 0 times in 0 posts
Send a message via Skype™ to occam
Default

All I need is eg. average close price over last 15 days.
occam is offline  
Reply With Quote
Old 08-20-2010, 10:08 AM   #4
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

Hi Occam,

You should be able to set this up in market analyzer, as long as your data provider offers daily data.

See here for help adding columns to market analyzer.

You would select indicator, then choose SMA, define the period as 15 and then view this data for all instruments in the market analyzer list.
NinjaTrader_RyanM is offline  
Reply With Quote
Old 08-20-2010, 10:22 AM   #5
occam
Member
 
Join Date: Aug 2010
Posts: 89
Thanks: 0
Thanked 0 times in 0 posts
Send a message via Skype™ to occam
Default

Ok, got it.

If I wanted to do something else with the SMA, like dividing it with something else would I then code it?
occam is offline  
Reply With Quote
Old 08-20-2010, 10:25 AM   #6
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

Correct. Performing math on an indicator requires custom programming. Can see here for an introduction to developing indicators:
http://www.ninjatrader-support.com/H...verview18.html
NinjaTrader_RyanM is offline  
Reply With Quote
Old 08-20-2010, 10:54 AM   #7
occam
Member
 
Join Date: Aug 2010
Posts: 89
Thanks: 0
Thanked 0 times in 0 posts
Send a message via Skype™ to occam
Default

Ok, so is there anyway I can somehow return the function/indicator without mucking around with Plot0.Set() since I don't need any charting.
occam is offline  
Reply With Quote
Old 08-20-2010, 11:28 AM   #8
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

When using the market analyzer: Indicator plots are what you access. It doesn't mean you have to chart this - it's just the part of the indicator that's visible from the market analyzer.
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
Simple Indicator help chatchgo Indicator Development 2 03-16-2010 01:13 PM
Simple Indicator on Indicator throws exception aslane Version 7 Beta General Questions & Bug Reports 2 02-04-2010 09:14 AM
Need help with a simple indicator Eklavya Indicator Development 2 12-20-2009 10:36 AM
Simple Indicator heyligerb Indicator Development 2 08-31-2009 09:54 AM
Help with simple indicator JT454 Indicator Development 7 10-07-2008 11:09 AM


All times are GMT -6. The time now is 03:07 PM.