거래 로봇을 무료로 다운로드 하는 법을 시청해보세요
당사를 Facebook에서 찾아주십시오!
당사 팬 페이지에 가입하십시오
스크립트가 흥미로우신가요?
그렇다면 링크 to it -
하셔서 다른 이들이 평가할 수 있도록 해보세요
스크립트가 마음에 드시나요? MetaTrader 5 터미널에서 시도해보십시오
스크립트

Highest High fetch - MetaTrader 5용 스크립트

조회수:
3830
평가:
(9)
게시됨:
2023.02.03 22:04
이 코드를 기반으로 한 로봇이나 지표가 필요하신가요? 프리랜스로 주문하세요 프리랜스로 이동

Highest High fetch - Script.

1 File - Size : 1.62 KB.

The code defines a function "RangeHighs" that takes 4 integer inputs: pStartHour, pStartMins, pEndHour, and pEndMins, which represent the start and end time of a period.

It starts by initializing a "MqlDateTime" structure "time" and getting the current time using the "TimeCurrent" function. Then, it sets the seconds and hour/minute values of "time" to the input parameters.

The "StructToTime" function is then used to convert the "time" structure into a "datetime" type, which is stored in the "timeStart" and "timeEnd" variables. These variables represent the start and end time of the period of interest.

The code then declares an array "high" and sets it to be a series using the "ArraySetAsSeries" function. The "CopyHigh" function is then used to copy the highest prices of the symbol during the specified period into the "high" array.

Finally, the function returns the highest value in the "high" array, which is found using the "ArrayMaximum" function.

The "RangeHighs" function can be used in a MetaTrader 5 expert Advisor to calculate the highest price of a financial instrument during a specified time range and use it in trading logic, for example for entry or exit conditions.










MultiCurrency Template MT5 MultiCurrency Template MT5

a Template for Multicurrency system for Metatrader 5

Wilder's Relative Strength Index Wilder's Relative Strength Index

An implementation of the Relative Strength Index indicator by John Welles Wilder Jr. as described in his book—New Concepts in Technical Trading Systems [1978].

Advanced Line Chart Advanced Line Chart

Advanced Line Chart based on Japanese candlesticks.

CLS (ClearScreen) CLS (ClearScreen)

CLS (ClearScreen) delets all object drawn on the chart with key press "C"