당사 팬 페이지에 가입하십시오
- 조회수:
- 5299
- 평가:
- 게시됨:
- 2023.02.08 23:43
-
이 코드를 기반으로 한 로봇이나 지표가 필요하신가요? 프리랜스로 주문하세요 프리랜스로 이동
![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