사용자 등급 기준 MetaTrader 5용 최고의 라이브러리 - 2

코드를 제출하세요

CDateTime 밀리초 확장 + 날짜 시간 감독 변수 확장

Logify는 EA 및 지표의 디버깅, 추적, 모니터링을 간소화하도록 설계된 MQL용 로깅 라이브러리입니다. 로그 수준, 유연한 형식 및 여러 핸들러를 지원하여 차트나 터미널에서 직접 구조화되고 사용자 지정 가능하며 정리된 로그를 제공합니다. MQL 프로젝트에 쉽게 통합할 수 있는 가볍고 우아한 솔루션입니다.

미체결 포지션 및 지정가 주문 수정 기능

EA가 조건에 따라 차트에 중복 EA가 있는지 여부를 결정하도록 허용합니다.

Include-file class that measures inter-tick latency, filters false alarms via a self-normalising ATR volatility gate, and broadcasts persistent lag alerts to other EAs via GlobalVariable IPC.

Institutional-grade forex session detection and analysis library for MetaTrader 5.

Runtime trade frequency adjustment library for MetaTrader 5.

Professional Telegram integration library for MetaTrader 5 EAs.

Institutional risk analysis library for MetaTrader 5. Zero external dependencies. Pure MQL5 mathematics.

Centralized indicator handle management library for MetaTrader 5 EAs.

ASQ Order Executor — Institutional order execution wrapper for MQL5 EAs ASQ Order Executor provides institutional-grade order execution with automatic retry logic, slippage monitoring, partial fill handling, requote management, and comprehensive execution statistics. Drop it into any EA for production-ready trade execution.

A daily process writes "today's decision" (which strategy runs, or FLAT) to a file the EAs read at the open. One day the writer did not run. The EAs read yesterday's file, compared its date with TimeCurrent() - the server clock, which had stepped back to the previous day overnight - saw a match, and traded all morning on a 24-hour-old decision. No error anywhere. Two rules, both in this class: 1) staleness is judged against TimeLocal(), which always moves forward; TimeCurrent() is the last tick's stamp - it freezes without ticks and can step back on reconnect. 2) When in doubt the answer is FLAT: missing file, bad date, wrong day, empty line - every failure path returns "do nothing", and each is logged ONCE per state change, not on every tick and not never. File format: line 1 = ISO date, line 2 = decision string. The demo writes a fresh, a stale, a malformed, an empty and a missing file, and shows that only the first is allowed to trade.

모든 금융 상품에 걸쳐 정확한 핍 값 계산과 동적 랏 크기 조정이 가능한, 가볍고 OOP를 준수하는 MQL5 헤더 클래스(.mqh)로, 자동 통화 간 환율 변환 및 브로커 거래량 정규화 기능을 갖추고 있습니다.

위험 금액을 기준으로 한 포지션 규모는, 가정된 핍(pip) 값이 아닌 해당 종목의 실제 틱 값, 틱 크기 및 거래량 단위를 바탕으로 계산됩니다. 거래량은 항상 아래로 반올림되며, 위험 금액이 최소 랏보다 작을 경우 이를 알리고 해당 랏의 실제 비용을 보고합니다. 터미널 상태가 아니므로 포지션 크기 산정 로직을 오프라인에서 테스트할 수 있으며, 41개의 어설션으로 구성된 테스트 스크립트가 포함되어 있습니다.

A small include file for Expert Advisors and trade managers. It turns your risk rules into yes/no answers: how many lots does this stop allow, is the daily loss limit reached, is the maximum drawdown (static or trailing) reached, how much is at risk across all open positions, and are spread and session acceptable. The lot is never rounded up: if the broker minimum lot would risk more than allowed, the trade is skipped and the reason is returned. Limits survive a terminal restart. The library only measures: it sends no order. Includes a demo account guard (no trading by default) and a self-test with 78 checks.

The library reconstructs a complete MQL4-style order model on top of the native MQL5 Position, Order, Deal, and History APIs. This design allows legacy MQL4 Expert Advisors to operate with minimal code changes while preserving MQL5.

Calculates the Strategy Tester report statistics from the deal history, including Z-Score, AHPR, GHPR, LR Correlation and LR Standard Error, which TesterStatistics() does not return. Checked value by value against the tester.

Reads a Strategy Tester report saved as HTML into its deals, closed trades, net profit and balance drawdowns, for comparing, combining or exporting backtests.

A lightweight tab bar for chart panels, drawn with the standard CCanvas class. One include file, several independent instances per chart, click selection, resizing and safe cleanup. Includes a demo Expert Advisor.

입력 매개변수의 구조

이 EA는 인클루드 파일을 사용하여 자신만의 헤징 전략을 구현하는 방법을 보여주는 데모입니다.

이 코드는 메타트레이더 5에서 거래가 개시 또는 청산될 때마다 모바일 기기로 푸시 알림을 전송하는 간단한 기능을 제공합니다. 이 코드는 네팅 계좌(심볼당 하나의 포지션만 허용)를 위해 설계되었습니다.

버퍼에서 개별 비트 또는 비트 시퀀스를 읽고 쓰기 위한 클래스입니다.

이 형식으로 압축된 *.gz 파일 또는 사이트의 응답에서 GZIP 아카이브의 압축을 풉니다.

포지션 청산 및 주문 삭제 기능

기술적 세부 사항 현재 매수/매도 호가로 즉시 시장가 청산을 위해 TRADE_ACTION_DEAL과 함께 MQL5의 OrderSend를 사용합니다. 슬리피지 허용 오차(10포인트), 적절한 거래량 매칭, 매직넘버 보존 기능이 포함되어 있습니다. 실행 중 지수 이동을 방지하기 위해 포지션을 역순으로 반복합니다.

차트에 볼륨 프로필을 생성하는 기본 라이브러리입니다.

이 스크립트 및 EA를 통해 코더는 MQL5 캘린더를 사용하는 뉴스 기반 전략을 백테스트할 수 있습니다.

특정 모듈 또는 코드 섹션을 기록하는 기능이 있는 로거

거래 작업 전에 터미널 핑 + 실행 대기 시간을 결합하여 검증하는 클래스를 포함합니다. 임계값을 초과하면 false를 반환합니다.

예치금 비율에서 로트 계산 기능

CDebugLogger 클래스는 MQL4/5 환경에서 사용하도록 설계된 유연하고 포괄적인 로깅 유틸리티입니다. 개발자는 타임스탬프, 함수 서명, 파일 이름, 줄 번호 등을 로그 항목에 포함하는 옵션을 사용하여 다양한 중요도 수준(정보, 경고, 오류, 디버그)으로 메시지를 로깅할 수 있습니다. 이 클래스는 콘솔과 파일 모두에 대한 로깅을 지원하며, 로그를 일반 폴더와 CSV 형식으로 저장할 수 있습니다. 또한 특정 키워드를 기반으로 로그를 무음 처리하여 민감한 정보가 기록되지 않도록 하는 기능도 제공합니다. 이 클래스는 다양한 디버깅 및 모니터링 요구 사항을 충족하는 사용자 지정 가능한 기능을 통해 MQL4/5 애플리케이션에서 강력한 로깅 메커니즘을 구현하려는 개발자에게 이상적입니다.

JSON 형식의 직렬화 및 역직렬화

단순한 유형, 구조 또는 객체 포인터의 배열을 정렬하는 데 빠른 성능을 제공하는 하이브리드 정렬 알고리즘입니다.

Constructor for creating histograms of statistical distributions of indicators, timeseries and their derivatives.

테스터의 단일 패스 데이터.

테스터에서 여러 번 실행/최적화.

전략 테스터에서 테스트하는 동안 TimeGMT() 함수를 수정하는 정적 클래스입니다.

두 벡터 사이의 코사인 거리와 유사도를 계산합니다. 코사인 거리는 1-cosine_similarity이고 코사인 유사도는 두 벡터의 도트 곱에 크기를 곱한 값입니다.

레벨, 메시지 형식, 하위 문자열에 대한 포함 및 제외 필터를 지원하는 가장 간단한 메타트레이더 5 로그인용 클래스입니다.