Questions from Beginners MQL5 MT5 MetaTrader 5 - page 1485
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
It is clear in the indicator. But the script?
How to get parameter value by script
It is clear in the indicator. But the script?
https://www.mql5.com/ru/docs/series/bars
https://www.mql5.com/ru/docs/series/bars
That's understandable, I've done it that way before. Thank you
I was wondering if there was another way.
That's understandable, I've done that before. Thank you
I was wondering if there was another way.
You can. SeriesInfoInteger().
Where can I see a simple example of implementing piecewise linear interpolation ?
For example for array x[]={0.1 , 0.8, 3.2, 7.9, 9.3} (5 values) there are corresponding values in array y[]={-3.2, 2.7, 1.1, -6.4, 20} (5 values)
How do I get the corresponding values from the array y[]9 values for the argument x1[]={0.1, 1, 2, 2.5, 5, 5.1, 6, 8, 9.3} (9 values) via the piecewise linear interpolation function for the argument x1[]={0.1, 1, 2, 2.5, 5, 5.1, 6, 8, 9.3} (9 values)?
I understand that to start with, in array x[] we look for the value from array x1[], and if they match exactly, then assign the value from array y[]/ to array y1[].
And if they do not match, we look for 2 values in array x1[], between which lies the value from array x1. Then for the array y1[], we calculate the corresponding value from the array y[] by the formula.
And so for the required number of points. But the search by enumerating each element of the array is not economical. Probably use binary search (I read about the search methods).
So, I would like to see somewhere how such a function is written and how it is used. In the search I found only references to ALGLIB. But I couldn't understand where it comes from and how.
Don't send me to ALGLIB.
So, I would like to see somewhere how such a function is written and how it is used. In the search I found only references to ALGLIB. But I couldn't figure out where it comes from and how.
Don't send me to ALGLIB.
Why search for each? If x and x1 are ordered, we progress through them by two indices.
Why search for each? If x and x1 are ordered, we advance by two indices.
Yeah, I didn't think of that. That's why I asked for examples. But I couldn't find any. I need the right way to do it.
How can I upload a robot in MQL5 in the Market for sale, can I get instructions?
In the Market. There is a big green button at the top-right...
In the Market. At the top-right is a big green button ...