t1m0thy / Publications
Forum
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
Vairable variables
I am creating a function to 'push' a value in to an array so that when I call the function like: ArrayPush(Double <VALUE>, Double <ARRAY>) This function will move all of the values in the array along one entering <VALUE> at [0]. The question is this: Is it possible in MQL4 to NOT declare data types
Number formats 50 -> 0.0005
I'm trying to convert a whole number of pips to the correct price value. For example I want to be able to enter '50' and the function output 0.0005. To do this the maths is simple - 50 / 100000 (this is for a broker giving prices accurate to 5 decimal places of course) now the output is technically