Using Indicators efficently

Back to topics list To post a new topic, please log in or register
avatar
5
t1m0thy 2015.11.20 23: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.

avatar
2017
gooly 2015.11.21 13: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. :(
Back to topics list  

To add comments, please log in or register