cumdelta = cum(delta);
o = cumdelta[1];
Does not look like an array has been declared
vetador:
Since there is no cum() function in mql4, I need help to know how to code a function "cum()" that I can use for my code.
I need it for my cumdelta variable "cum(delta)".
I have found something on google and this is what I want but I'm not sure how to transform it into mql4.
I don't know what is series.Length and series[bars] is in mql4. I guess series.Length is total number of bars so I must use "Bars".
Since there is no cum() function in mql4, I need help to know how to code a function "cum()" that I can use for my code.
I need it for my cumdelta variable "cum(delta)".
I have found something on google and this is what I want but I'm not sure how to transform it into mql4.
I don't know what is series.Length and series[bars] is in mql4. I guess series.Length is total number of bars so I must use "Bars".
Total cumulative ?
You could add a + in front of the =
cumdelta += delta;
When I do that, it give me EMPTY VALUE since the first value is empty.
I tried that and it work:
if (cumdelta1 <= 214700000) { cumdelta1 += delta[i]; cumdelta[i] = cumdelta1; } else { cumdelta1 = delta[i]; cumdelta[i] = cumdelta1; }
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
I need it for my cumdelta variable "cum(delta)".
I have found something on google and this is what I want but I'm not sure how to transform it into mql4.
I don't know what is series.Length and series[bars] is in mql4. I guess series.Length is total number of bars so I must use "Bars".