Any questions from newcomers on MQL4 and MQL5, help and discussion on algorithms and codes - page 748

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
Add up simple dubs in a calculator and you will see. If you normalise each MA, the result will be skewed, but that's half the trouble, the trouble is that you are deliberately underestimating the speed of the program
your true)))
just subtract the array from the array...
I pass an array like this
The error is like this:
4051
ERR_INVALID_FUNCTION_PARAMVALUE
Invalid function parameter value
If I pass a one-dimensional array, everything works with the same parameters.
Is there any way to customize the indicator added viaChartIndicatorAdd?
The tutorial doesn't say anything about it, the usual methods like #property indicator_color1 do not work.
Hi.
I have already figured out how to get an indicator from an indicator in the terminal. I just need to put e.g. MA on the indicator window and select to apply it to the prices of the last indicator.
How to get the value of such MA in MQL4?
Hi.
I have already figured out how to get an indicator from an indicator in the terminal. I just need to put e.g. MA on the indicator window and select to apply it to the prices of the last indicator.
How to get the value of such MA in MQL4?
OK. Got it. Since there's no CopyBuffer(), the array will have to be created and filled by itself.
It is enough to build the recalculation of the indicator in a slightly different way. First, if there are no bars, pass through the entire history, thus filling the array, then another condition, that the calculated bars equal to the total number of bars, read the last bar and this array, the indicator buffer, pass to iMAOnArray.
You can do it in one cycle, but starting from a bar not less than the averaging period, after the recalculation of the next bar, read iMAOnArray
In general, flight of fancy and repeatedly checking the result.