-Aleks-: Can I see an indicator instead of a script? I'm just having a hard time with all these time arrays... I'd like to learn from an example.
If you want to understand how to build indicators, it's better to consult articles and try it yourself. I only showed you how to determine the maximum of the day at the current time. It would be better to rewrite the algorithm in the indicator, so as not to check all previous values of the day on each new bar, and to check only the value of the current maximum of the day.
An array is passed by reference and you are referring to the exact array you pass to the function via the input parameters. For example (purely hypothetical)
It is better, of course, to pass all the necessary parameters to the function:
and you can use function overloading - a function with the same name does different things depending on the input parameters and type:
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
Can I see an indicator instead of a script? I'm just having a hard time with all these time arrays... I'd like to learn from an example.
An array is passed by reference and you are referring to the exact array you pass to the function via the input parameters. For example (purely hypothetical)
It is better, of course, to pass all the necessary parameters to the function:
and you can use function overloading - a function with the same name does different things depending on the input parameters and type:
Followed the link, thanks, just what I needed!
How do I find the bar with the maximum volume?
How do I find the bar with the maximum volume?
Trying through unknown volumes over an unknown period and comparing the current maximum with the current checkable one in sequence.
How do I find the bar with the maximum volume?
Hello, Could you please advise brokers that trade with 4-digit quotes (1.3245)?
Hello, Could you please advise brokers that trade with 4-digit quotes (1.3245)?