Download MetaTrader 5

Using Indicators efficently

To add comments, please log in or register
t1m0thy
19
t1m0thy  
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.
Carl Schreiber
7362
Carl Schreiber  
Sorry, but there is no truth about the best/most efficient way - all depends on the usage. What works here creates a disaster elsewhere. :(
To add comments, please log in or register