Using Indicators efficently

 
When using indicators in an expert agent what is the best/most efficient way to do so? Say for example I want to see if a moving average is increasing is:

ma[0] = iMA(Symbol(), 0, maPeriod, 0, 1, 0, 0);
ma[1] =  iMA(Symbol(), 0, maPeriod, 0, 1, 0, 1);
increasing = ma[0] > ma[1];

the right /best way?


Thanks.
 
Sorry, but there is no truth about the best/most efficient way - all depends on the usage. What works here creates a disaster elsewhere. :(