Rejoignez notre page de fans
- Vues:
- 5296
- Note:
- Publié:
- 2023.02.08 23:43
-
Besoin d'un robot ou d'un indicateur basé sur ce code ? Commandez-le sur Freelance Aller sur Freelance
![Advanced Line Chart](https://c.mql5.com/i/code/indicator.png)
Advanced Line Chart based on Japanese candlesticks.
![Highest High fetch](https://c.mql5.com/i/code/script.png)
The code defines a function "RangeHighs" that calculates the highest price of a financial instrument within a specified time range (start and end time). The time range is defined by 4 input parameters (hour and minute of start and end time). The highest price is found using the "CopyHigh" function and stored in an array, from which the maximum value is returned.
![Check the time periods used](https://c.mql5.com/i/code/expert.png)
The function takes two arrays of integers as parameters: "allowedPeriods" and "periodsToCheck". "allowedPeriods" is an array containing all the time periods allowed by the system, while "periodsToCheck" is an array containing the time periods used by the user in the indicator. The function iterates through the elements of the "periodsToCheck" array and checks if each of them is present in the "allowedPeriods" array. If it finds any time period that is not allowed, the function returns "false". If all time periods are allowed, the function returns "true". In short, this function is used to make sure that the time periods used in an indicator are valid and allowed by the system.
![Hurst Exponent - optimized version](https://c.mql5.com/i/code/indicator.png)
Hurst Exponent - optimized version