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

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 have a code that is not executed in MQL5 in my indicator
The thing is, ifprice == STO_LOWHIGH everything works correctly, but if price == STO_CLOSECLOSE the function assigns to static variables only
... bypassing the loop
but this exact same function works correctly in MQL4
but the same function works correctly in MQL4
Then we need to clarify what arrays High[] Close[]
If they are from mql4, they are not available in mql5, if they are custom... I can't make any suggestions.
I want to get the usual maxHigh and minLow stochastics within the period K by Low/High and Close/Close
Low/High during initialization works fine, but Close/Close does not
It's easier to find fmax() or fmin() from the array obtained by CopyBuffer()
Then we need to clarify what arrays High[] Close[] are
If they are from mql4, they are not available in mql5, if they are custom... I cannot make any assumptions.
Here is the content of these buffers in MQL5
It is easier to find fmax() or fmin() from the array obtained by CopyBuffer()
I need values not from the whole buffer, but within a period K
Otherwise how to implement it, taking into account that I need to copy data taking into account the period of deceleration?
I don't need values from the whole buffer, but within the period K
Otherwise, how can I implement this, given that I need to copy the data taking into account the deceleration period?
Yesterday I did the same thing, only with high and low arrays
Without time series flip. So, as laid down in mql5? zero bar on the left.
Plus it's possible to copy indicator buffer not the whole buffer, but only the specified amount from specified bar. And I mistakenly recommended fmax() and fmin(). I meant ArrayMaximum()
I want to get the normal maxHigh and minLow stochastics within a period K by Low/High and Close/Close
Low/High during initialization works fine, but Close/Close does not
There are standard functions for time series
there are standard functions for timeseries
It is advisable to start reading from the beginning to get good advice. From where the first question was and the rest of the discussion.
It is advisable to start reading from the beginning for good advice. From where the first question was and the rest of the discussion.
It seems that from the very beginning - the man is going through the time series in search of min/max.
(didn't check).It is possible to do without it.
Seems to have looked at it from the beginning - the man is going through the timeseries looking for min/max.
(didn't check).You could do without it.
He wants stochastic values.
Although... I'm already confused myself what it needs. It looks like stochastic condition, but it copies bars...