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 > Strategy Development

Strategy Development Support for the development of custom automated trading strategies using NinjaScript.

Reply
 
Thread Tools Display Modes
Old 11-06-2009, 01:46 AM   #1
voyager
Member
 
Join Date: Jul 2009
Posts: 49
Thanks: 0
Thanked 0 times in 0 posts
Default get many plots from indicator

Hi

Is there any way to get in a strategy the 4 plots of an indicator with a
single indicator call (maby as an array) ?

I 'm asking that because it would be less cpu consuming than 4 calls.

Thank you.
voyager is offline  
Reply With Quote
Old 11-06-2009, 02:55 AM   #2
Buthus
Junior Member
 
Join Date: May 2009
Posts: 22
Thanks: 0
Thanked 0 times in 0 posts
Default

For example:
Code:
MACD macd = MACD(12, 26, 9);
double m = macd[0];
double a = macd.Avg[0];
In this case the MACD indicator is called only once, but two Plots are used.

Regards,
Daniel
Buthus is offline  
Reply With Quote
Old 11-06-2009, 04:06 AM   #3
voyager
Member
 
Join Date: Jul 2009
Posts: 49
Thanks: 0
Thanked 0 times in 0 posts
Default

Thank you Buthus !!
voyager is offline  
Reply With Quote
Reply

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
Two Plots on one Indicator with Two Axises... CyberTrader123 Indicator Development 2 07-17-2009 05:31 AM
Indicator: Exposing indicator values that are not plots NinjaTrader_Josh Reference Samples 0 01-15-2008 02:27 AM
MRO in indicator with multiple plots Jim-Boulder General Programming 2 01-10-2008 11:34 AM
More than 4 plots in an indicator? FireFly Indicator Development 6 07-12-2007 03:56 AM
Plots[?].Min & Plots[?].Max Don't work AlohaBob Indicator Development 6 01-06-2007 08:31 PM


All times are GMT -6. The time now is 12:14 PM.