Any rookie question, so as not to clutter up the forum. Professionals, don't pass by. Nowhere without you - 6. - page 505
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
You need to, of course! Well, how do you apply this construction to finding the minimum? I can't figure it out by brainstorming.)
It comes out -1.And I want to learn how to declare an array. I tried it this way:
The loop goes through 34 values and the array only contains 33 cells, correct.
And try ArrayMinimum(num_array,WHOLE_ARRAY,0);
... I also want to learn how to declare an array...
If just for training and cognitive purpose...
The period at which minimum and maximum are determined - it should be an external parameter to allow for tuning and optimization.
So, first of all, the array is declared without size:
double val[];
The array declaration is done in a common section, not in a function.
In the init function, the size is set to the array:
Now in the start function we fill the array:
Finally , ArrayMaximum() and ArrayMinimum() are applied to the array.
To find the maximum, the variable val is assigned a value of 0 (obviously less than any of the values of the indictor).
This means that to find the minimum, we must add a deliberately higher value. You can use EMPTY_VALUE constant or the indicator value directly on some bar among which the minimum is searched.
Or like this:
The loop goes through 34 values, while the array contains only 33 cells, fix it.
And try ArrayMinimum(num_array,WHOLE_ARRAY,0);
Dear fellow programmers! I'm in trouble, please help me.
I've already racked my brains about this code.
Here is the whole function:
Reaches Print and this is what it outputs:
While ticket: 225299700 is an OP_SELLLIMIT order ticket.
And it modifies the stop loss of this selected order as expected. We don't see OP_BUY, though we surely have them:
What could be the problem? Why is it doing this to me? Please help me understand!
another question about the function
how to make a rectangle draw forward instead of backward, for example five bars forward at a specified price...... and not to redraw it
I've had a look. Thank you.
There's not much information in the question though. There's a lot of extremes on the hour bars in the month. And by the way, extrema of what exactly?