
보류 주문과 연동되는 브레이크아웃 전문가 자문(EA)의 교육용 예시입니다. 이 예시에서는 M1 봉을 기반으로 일일 가격 범위를 구축하고, 두 개의 스탑 주문을 설정하며, 한 주문이 체결된 후 다른 주문을 삭제하고, 터미널 재시작 후 해당 상태를 복원하는 방법을 보여줍니다.
전략
코드가 보여주는 내용
입력값
중요: 본 예시는 교육용이며, 실제 거래 시스템이 아닙니다. 데모 계좌 및 전략 테스터에서만 작동하며, 실거래 계좌에서는 경고 메시지가 표시된 후 중단됩니다. “있는 그대로” 제공되며, 어떠한 보증도 없습니다. 투자 조언이 아닙니다. 외환(Forex) 및 CFD 거래는 자본 손실의 위험이 높습니다. 라이선스: FxCraft 예제 EA 라이선스(소스 헤더 참조).
MetaQuotes Ltd에서 영어로 번역함.
원본 코드: /en/code/78688
Spread Monitor
스프레드 모니터(Spread Monitor)는 차트에 색상으로 구분된 패널을 표시하는 MQL5 전문가 자문가(Expert Advisor)입니다. 이 패널은 연결된 종목의 현재 스프레드를 포인트 단위로 표시하며, 롤링 기록에 따른 평균, 최소, 최대 값도 함께 보여줍니다. 또한 저장된 샘플 중 경고 수준을 초과한 횟수를 집계하며, 현재 스프레드가 해당 수준을 초과할 경우 상태 행을 빨간색으로 표시합니다. 이 유틸리티는 주문을 체결하지 않습니다. 입력 매개변수를 통해 경고 수준, 기록 크기, 갱신 간격 및 패널 위치를 제어할 수 있습니다. EA가 분리되면 패널 객체가 제거됩니다.
Closed Trades to CSV - one row per closing deal (partial closes, reversals)
Exports closed trades to a CSV file, one row per closing deal: partial closes, close-by and netting reversals are split, each row with the position's open time, volume-weighted open price and its share of the entry commission.
Risk Lot Calculator - lot size from risk percent and stop distance
Small include file that gives you the lot size from risk in percent (or fixed money) and the stop loss distance. Rounds always down, checks min/max lot and free margin.
Auto Fibonacci Retracement on the Latest Swing
Detects swing highs and lows automatically and draws Fibonacci retracement levels on the latest completed swing leg. The levels move to the new leg as soon as a new swing is confirmed; the levels, their colors and the swing sensitivity are configurable.