PDA

View Full Version : get many plots from indicator


voyager
11-06-2009, 01:46 AM
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.

Buthus
11-06-2009, 02:55 AM
For example:

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

voyager
11-06-2009, 04:06 AM
Thank you Buthus !!