[ARCHIVE]Any rookie question, so as not to clutter up the forum. Professionals, don't pass it by. Can't go anywhere without you - 5. - page 424
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
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
Well, in theory, if additional indicator buffers are self-declared and further trend lines are used, then it will work...
Then why does the documentation say that
No, I'm talking about ObjectCreate(), you have to set the window number there. I showed you how to set it if it is a subwindow (i.e. not zero, which is the main window).
So you have the function parameter WindowOnDropped there when creating an object, and it's already sort of the main window relatively. Or is main window the leftmostwindow in the terminal?
Hello! I can't understand why buystop orders are not deleted.
Then why does the documentation say that
I'm not talking about the indicator buffers, I'm talking about the simulated indicator buffers. There ArrayResize(CustomBuffer, Bars) in the wrapper from IndicatorCounted(), and the ends of the rightmost trend lines should be redrawn by bid.
So you have a function parameter there when creating an object - WindowOnDropped, and it's already sort of the main window relatively. Or is the main window leftmostamong windows in the terminal?
I have a question. My brain is boiling, honestly. If you can - help me.
Now a question: how can I restore values slow, fast, period by max (which is position of an item in the array)? The order in which values are put in temp[] is given in Print(). I put 3 in limit, but any number can be used there. Here are the first 77 values (limit=2):
I have a question. My brain is boiling, honestly. If you can - help me.
Now a question: how can I restore values slow, fast, period by max (which is position of an item in the array)? The order in which values are put in temp[] is given in Print(). I put 3 in limit, but it can be any number.
Where "n++" check if result is maximal, if it is maximal, remember values of slow, fast, etc.
No, I was confused at first too. For example, we have two charts open, the euro and gold. So, they both have an index of zero. But if they have sub-windows, they are numbered from one. For example, I have thrown three indices on the eurenne chart, two on gold, and all five with #property separate_window and all different subwindows. Then the eurene would have window numbers 0, 1, 2, 3 and gold would have 0, 1, 2.
Exactly! I just don't work with turkeys at all, so I didn't pay attention when I was studying the help. It all makes sense.
I am not talking about indicator buffers, I am talking about simulated indicator buffers. There ArrayResize(CustomBuffer, Bars) in the wrapper from IndicatorCounted(), and the ends of rightmost trend lines should be redrawn by Bid.
Where "n++" make check for maximal result, if maximal, remember values of slow, fast, etc.
Didn't think about it.
You can make three more arrays (or one three-dimensional array) for slow, fast... That's better, because in case you want to sort the results somehow, there will always be test parameters available.
Three-dimensional is ideal, but ArrayMaximum() only works on one-dimensional, so you'll have to converge the array into a linear one, and again you'll have to figure out where everything is. But I have fastMax=slow, and that's the trouble. But three different arrays... I have the same result, so it's either one three-dimensional or one linear.
scale arrays for results
I don't know this terminology, please explain. Create a linear array of length in a cube?
Well, at least there's an option already. Via MathMax(result, resultPrev).