![]() |
|
|||||||
| Indicator Development Support for the development of custom indicators using NinjaScript. |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Junior Member
Join Date: Jun 2012
Posts: 27
Thanks: 0
Thanked 0 times in 0 posts
|
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? |
|
|
|
| Thread Tools | |
| Display Modes | |
|
|
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 |