![]() |
|
|||||||
| General Programming General NinjaScript programming questions. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Member
|
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. |
|
|
|
|
|
#2 |
|
NinjaTrader Customer Service
Join Date: Sep 2009
Location: Denver, CO
Posts: 8,117
Thanks: 249
Thanked 418 times in 415 posts
|
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.
Ryan M
NinjaTrader Customer Service |
|
|
|
|
|
#3 |
|
Member
|
All I need is eg. average close price over last 15 days.
|
|
|
|
|
|
#4 |
|
NinjaTrader Customer Service
Join Date: Sep 2009
Location: Denver, CO
Posts: 8,117
Thanks: 249
Thanked 418 times in 415 posts
|
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.
Ryan M
NinjaTrader Customer Service |
|
|
|
|
|
#5 |
|
Member
|
Ok, got it.
If I wanted to do something else with the SMA, like dividing it with something else would I then code it? |
|
|
|
|
|
#6 |
|
NinjaTrader Customer Service
Join Date: Sep 2009
Location: Denver, CO
Posts: 8,117
Thanks: 249
Thanked 418 times in 415 posts
|
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
Ryan M
NinjaTrader Customer Service |
|
|
|
|
|
#7 |
|
Member
|
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.
|
|
|
|
|
|
#8 |
|
NinjaTrader Customer Service
Join Date: Sep 2009
Location: Denver, CO
Posts: 8,117
Thanks: 249
Thanked 418 times in 415 posts
|
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.
Ryan M
NinjaTrader Customer Service |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
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 |