Join our fan page
CLS (ClearScreen) - indicator for MetaTrader 5
- Views:
- 5579
- Rating:
- Published:
- 2023.02.08 23:43
- Need a robot or indicator based on this code? Order it on Freelance Go to Freelance
Advanced Line Chart based on Japanese candlesticks.
Highest High fetchThe 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.
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 versionHurst Exponent - optimized version