당사 팬 페이지에 가입하십시오
- 조회수:
- 33
- 평가:
- 게시됨:
-
이 코드를 기반으로 한 로봇이나 지표가 필요하신가요? 프리랜스로 주문하세요 프리랜스로 이동
위치에 제한 없이 WinAPI를 통해 파일 작업을 할 수 있는 라이브러리입니다.
현재 상수 파일(읽기 전용) 작업에만 구현되어 있으며, 버그 수정 및 코드 추가가 이루어지면 업데이트될 예정입니다.
FileUnlimited.mqh, FileUnlimitedConstants.mqh 및 StringUtils.mqh 파일은 terminal_data 디렉토리\MQL5\Include\TheXpert에, ConstFileUnlimited.mqh 라이브러리는 terminal_data 디렉토리\MQL5\Libraries\TheXpert에, FileUnlimitedTest.mq5 스크립트는 terminal_data 디렉토리\MQL5\Scripts에 복사해 두어야 합니다.
클래스 사용을 최대한 간단하게 만들려고 노력했습니다.
다음은 사용 예제입니다(스크립트 복제).
#include <TheXpert/FileUnlimited.mqh> #include <TheXpert/StringUtils.mqh> #define CP_UTF16 1200 void OnStart() { string name = "TheXpert\\Test.txt"; string path = TerminalInfoString(TERMINAL_DATA_PATH) + "\\MQL5\\Files\\" + name; int hFile = FileOpen(name, FILE_WRITE | FILE_TXT, ' ', CP_UTF16); if (hFile == INVALID_HANDLE) { Print("File not opened."); return; } bool writeBool = false, readBool = true; long writeLong = -4369549, readLong = 0; double writeDouble = -4369549.245, readDouble = 0; datetime writeDatetime = 2596824987, readDatetime = 0; color writeColor = Blue, readColor = White; string writeString = "2r4i6bf4wb9tb69vw", readString = ""; FileWrite(hFile, writeBool); FileWrite(hFile, writeLong); FileWrite(hFile, writeDouble); FileWrite(hFile, writeDatetime); FileWrite(hFile, writeColor); FileWrite(hFile, writeString); FileClose(hFile); // --------------------------------------------- // 여기서부터 라이브러리는 읽기에 사용됩니다. // --------------------------------------------- ConstFile* file = OpenConstFile(path); if (CheckPointer(file) != POINTER_INVALID) { file.Read(readBool); Print("readBool = ", readBool); file.Read(readLong); Print("readLong = ", readLong); file.Read(readDouble); Print("readDouble = ", readDouble); file.Read(readDatetime); Print("readDatetime = ", readDatetime); file.Read(readColor); Print("readColor = ", readColor); file.Read(readString); Print("readString = ", readString); delete file; } else { Print("Failed to open ConstFile at path -- ", path); } }
이 라이브러리는 유니코드 파일에서만 작동하므로 코드 페이지 CP_UTF16이 도입되었습니다(어떤 이유로 언어 상수에 포함되어 있지 않음).
모든 버그를 댓글이나 이 스레드에 신고해 주세요.
의견, 소망, 건전한 비판을 적극 환영합니다.
모두에게 유용한 것을 함께 만들어 봅시다!
MetaQuotes Ltd에서 러시아어로 번역함.
원본 코드: https://www.mql5.com/ru/code/386

RBCI(범위 바운드 채널 인덱스) 디지털 필터는 스펙트럼의 저주파 성분이 형성하는 저주파 추세와 스펙트럼의 고주파 성분이 형성하는 고주파 노이즈를 제거합니다.

추세 균형 지표인 TrendEQ는 모멘텀과 변동성을 결합하여 시장 움직임을 동적으로 분석합니다. 모멘텀과 시장 변동성을 확장하여 추세의 강도와 방향에 대한 신뢰할 수 있는 척도를 제공합니다.

가격 계열의 이중 적응형 JMA 평활화를 사용한 이동 평균.

자동 추세선 인디케이터는 메타트레이더 5 차트에 지지 및 저항 추세선을 자동으로 그려줍니다. 두 가지 방법을 사용하여 주요 가격 수준을 식별합니다: 두 개의 극값(유형 1) 또는 극값과 델타(유형 2). 새로운 막대가 형성될 때만 선이 다시 계산되므로 효율적인 성능을 보장합니다.