당사 팬 페이지에 가입하십시오
Advanced Line Chart - MetaTrader 5용 지표
- 조회수:
- 8761
- 평가:
- 게시됨:
- 2023.02.04 05:19
- 업데이트됨:
- 2023.03.03 15:05
- 이 코드를 기반으로 한 로봇이나 지표가 필요하신가요? 프리랜스로 주문하세요 프리랜스로 이동
This line tries to reflect the main direction of the trend and it is calculated based on Japanese candlestick data.
If the trend is up, then the line is closer to the high prices of each candle, and vice versa, if the trend is down, then the line is closer to the low prices of each candle.
This is great for plotting various moving averages and can be a good basis for calculating other indicators.
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.
MultiCurrency Template MT5a Template for Multicurrency system for Metatrader 5
CLS (ClearScreen) delets all object drawn on the chart with key press "C"
Check the time periods usedThe 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.