NinjaTrader Support Forum  

Go Back   NinjaTrader Support Forum > NinjaScript Development Support > Indicator Development

Indicator Development Support for the development of custom indicators using NinjaScript.

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old 06-09-2012, 07:52 PM   #1
milemke08
Junior Member
 
Join Date: Jun 2012
Posts: 27
Thanks: 0
Thanked 0 times in 0 posts
Default Very Basic Indicator Help

I'm trying to create a custom indicator in NinjaTrader but I'm running into a very odd problem. In the .onBarUpdate() method it won't let me have ANYTHING in the function and the only variable it wont display any Close[x] value if its greater than 0.

If i put anything in the function ex:

protected override void OnBarUpdate()
{
double x = Close[1];


GRPlot.Set( Close[0] );
}
In my indicator window this won't display anything, neither will this:

protected override void OnBarUpdate()
{
GRPlot.Set( Open[1] );
}


It appears that it's having a serious problem getting any information past the reference point of '0'. Anyone got any advice?
milemke08 is offline  
Reply With Quote
 

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
New Basic Indicator converted from Strategy ij001 Indicator Development 5 06-26-2011 02:45 PM
Basic Supertrend indicator information rsuess1 Indicator Development 4 09-23-2010 08:23 AM
Basic question: Indicator on an Indicator cgeorgan General Programming 3 06-21-2010 02:35 PM
Basic indicator scaling question jtrade Charting 2 02-01-2010 06:29 AM
Please help me with this basic indicator suprsnipes NinjaScript File Sharing Discussion 1 11-06-2009 05:40 AM


All times are GMT -6. The time now is 09:20 AM.