Download MetaTrader 5
To add comments, please log in or register
Documentation is available in CHM and PDF. Download it in any convenient form!
t1m0thy
19
t1m0thy 2015.11.20 22:56 
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
5960
Carl Schreiber 2015.11.21 12:41  
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