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

One-Click Close All Positions with Slippage Guard - MetaTrader 5용 스크립트

Gerardo Lopez Martinez
Gerardo Lopez Martinez
  • Algorithmic Trading & Prop Firm Risk Systems 에  Institutional MQL5 Developer
  • 멕시코
  • 614
전문 MQL5 & C# 알고리즘 트레이딩 개발자 | 기관급 자동매매 및 리스크 관리 시스템
MQL5 Market 공식 인증 개발자. 기관 기준에 맞춘 고성능 EA(자동매매 로봇), 커스텀 보조지표 및 주문 실행 시스템을 제작합니다. 모든 솔루션은 100% 깔끔한 객체 지향 코드로 작성되며, MT5 전략 테스터에서 0 에러, 0 경고를 보장합니다.
주요 전문 분야:
✔ 맞춤형 EA 제작: 외환(Forex), 골드(XAUUSD), 지수, 암호화폐 전용 견고한 자동매매.
조회수:
78
평가:
(1)
게시됨:
MQL5 프리랜스 이 코드를 기반으로 한 로봇이나 지표가 필요하신가요? 프리랜스로 주문하세요 프리랜스로 이동

One-Click Close All Positions with Slippage Guard is a fast execution utility script for MetaTrader 5 that closes open positions safely while protecting against abnormal spreads and excessive slippage.

How it works:

  • Iterates backwards through open positions and filters by scope, optional Magic Number, and live spread before sending close orders via CTrade .
  • Automatically retries transient broker errors (REQUOTE , PRICE_CHANGED , PRICE_OFF , TIMEOUT , CONNECTION ) and prints a complete execution summary in the Experts log and an Alert popup.

Input Parameters:

  • InpCloseScope (default: CLOSE_ALL_SYMBOLS) — Filter mode: All Symbols, Current Symbol Only, Profitable Positions Only, or Losing Positions Only.
  • InpMagicFilter (default: -1) — Optional Magic Number filter (-1 closes positions from any Magic Number).
  • InpClosePending (default: false) — If true , also deletes matching pending orders.
  • InpMaxSlippagePts (default: 30) — Maximum allowed slippage deviation in points passed to CTrade .
  • InpMaxSpreadPts (default: 0) — Maximum spread in points allowed to close a position (0 disables spread filtering).
  • InpMaxRetries (default: 3) — Maximum retry attempts on transient requotes or price changes.
  • InpRetryDelayMs (default: 100) — Delay in milliseconds between retry attempts.


One-Click Close All Positions with Slippage Guard


Tick Volume Delta Histogram (Buy/Sell Pressure Estimate) Tick Volume Delta Histogram (Buy/Sell Pressure Estimate)

Estimates buy/sell pressure by splitting the tick volume of every bar into a buy part and a sell part. The difference (delta) is shown as a four-color histogram with an optional EMA line.

Session VWAP with Standard Deviation Bands Session VWAP with Standard Deviation Bands

Session-anchored VWAP with volume-weighted standard deviation bands. It restarts at every daily, weekly or monthly session open and shows how far price has stretched from the average price paid during the session.

Spread and Tick Velocity Monitor Spread and Tick Velocity Monitor

Lightweight real-time HUD for MetaTrader 5 that monitors live spread (points and pips), session Min/Avg/Max spread, and tick arrival velocity (ticks/sec and ticks/min) with automatic market regime classification.

Giano Session Range Breakout EA Giano Session Range Breakout EA

Night session range breakout for XAUUSD: one decision per day, a hash-chained journal written before every order, and safe recovery after restarts.