![]() |
This website will be down for maintenance from Friday May 24th at 6PM MDT until Saturday May 25th at 11AM MDT. We apologize for the inconvenience. If you need assistance during this time, please email sales@ninjatrader.com
|
|||||||
| General Programming General NinjaScript programming questions. |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Senior Member
|
I need one indicator to get the value of another one in the OnBarUpdate code. I'm having trouble with a particular (licensed and locked) indicator that keeps returning 0 as its value.
I can get values from these other indicators: Standard indicator EMA(9)[0].ToString() = 1.33744268334864 Custom indicator SAFqt(9)[0].ToString() = 1.33678766781693 but this indicator returns 0 every time: MA_Multicolor(2, 30, mAType, 30, 9)[0].ToString() = 0 This is a moving average indicator like the other two. I can't look at the source code because it's licensed. But I should be able to use the above statement to get its value, shouldn't I? Bryan
Price-Dynamics.com
A NinjaTrader Official Partner Visit http://www.price-dynamics.com to learn more about the Rhythm Relay trading system. Yes, you can discretionary or auto-trade with 75%+ accuracy! Use our Contact Us page to request free access to our daily Trader's Lounge where you can see the system in action in a live account! |
|
|
|
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Call Ninja Indicators from DLL | josepin | General Programming | 3 | 08-11-2011 11:46 AM |
| code for collecting data with indicators | OtterNinja | General Programming | 1 | 10-02-2010 12:48 PM |
| sharing code between indicators and strategies | kjackson | General Programming | 3 | 01-24-2010 09:56 PM |
| multi-time frame code and entry code | Mark_486 | General Programming | 1 | 05-15-2008 11:54 AM |
| How to lock ninja indicators source code? | amenlo9 | Indicator Development | 3 | 04-10-2008 02:19 AM |