NinjaTrader Support Forum  
X

Attention!

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


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

General Programming General NinjaScript programming questions.

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old 12-01-2011, 12:10 PM   #1
cassb
Senior Member
 
Join Date: Nov 2007
Location: Victor, NY
Posts: 577
Thanks: 5
Thanked 4 times in 4 posts
Send a message via Yahoo to cassb Send a message via Skype™ to cassb
Default How to call other indicators from code

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!
cassb 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
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


All times are GMT -6. The time now is 05:15 PM.