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

TimeLib by BabyBear - MetaTrader 4용 라이브러리

조회수:
5042
평가:
(10)
게시됨:
2016.03.25 13:51
\MQL4\Include\
DateTime.mqh (3.28 KB) 조회
_WeekEnd.mq4 (1.51 KB) 조회
이 코드를 기반으로 한 로봇이나 지표가 필요하신가요? 프리랜스로 주문하세요 프리랜스로 이동

Several functions for working with the holidays:

The function

datetime LastMondayStart( datetime dt);

returns the last Sunday 22:00 before dt.


The function
datetime NextFridayEnd( datetime dt);

returns the nearest Friday 23:00 time after dt.

The function

int SundayMidnightCount( datetime start, datetime end);
returns the number of holidays between two dates.

The function
int HoursCandleCount( datetime start, datetime end);
returns the number of trading hours between two dates. In other words, it is the amount of hourly candles between 'start' and 'end'.

The function
datetime AddTradingSeconds( datetime start, int seconds);

adds trading time to the date.


Example: the position needs to be closed 5 trading hours after opening. If the position was opened on Friday at 21:00, then it should be closed on Monday at 2:00. The initial time is calculated like this:

AddTradingSeconds( OrderOpenTime(), 5*60*60 );

MetaQuotes Ltd에서 러시아어로 번역함.
원본 코드: https://www.mql5.com/ru/code/7080

FloatPivot FloatPivot

A simple indicator of the floating reference center and its nearest resistance and support levels.

Comment2 Comment2

The Comment2 library expands the capabilities of the standard Comment function for comment output.

OsMACD OsMACD

The OsMACD indicator is a combination of the colored Moving Average of Oscillator(OsMA) and Moving Average Convergence/Divergence(MACD) indicators.

Writing the quotes to a txt file with the full path and file name Writing the quotes to a txt file with the full path and file name

This library allows you to write a text file with the quotes of the symbol in any place on your hard drive.