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

Close Profit Positions - MetaTrader 5용 스크립트

조회수:
269
평가:
(1)
게시됨:
MQL5 프리랜스 이 코드를 기반으로 한 로봇이나 지표가 필요하신가요? 프리랜스로 주문하세요 프리랜스로 이동

What ideas is the code based on: This script is designed for manual traders and algorithmic managers who need to instantly clean up their exposure. Standard MetaTrader 5 interface requires closing each position individually, which can cause significant slippage during high volatility. This script automates the process by iterating through all open positions and closing them in a split second based on the selected mode.

How indications can be interpreted: The script works via a user-friendly drop-down menu (Enumeration) and executes immediately upon being dragged onto the chart. It provides clear feedback in the Experts log terminal, printing the exact number of successfully closed positions.

Description of external variables (Inputs):

  • CloseMode: Determines the filtering logic for closing.

    • CLOSE_PROFIT — Closes only positions that are currently in net profit (including swap and commission).

    • CLOSE_LOSS — Closes only positions that are currently underwater (negative net profit).

    • CLOSE_ALL — Completely flattens the account by closing every single open position.

  • TargetMagic: Filter by Magic Number.

    • If set to 0 , the script will affect all manual trades and trades from any Expert Advisor.

    • If set to a specific number (e.g., 12345 ), it will only close positions opened by that specific EA.

Recommended usage:

  • Symbol: Universal (works on any currency pair, Gold, or Crypto).

  • Timeframe: Any (the script executes instantly and does not depend on chart periods).


Channel Proximity Engine Channel Proximity Engine

A library to retrieve proximity signals for channel based indicators

MACD Multi-color Histogram with Signal Line MACD Multi-color Histogram with Signal Line

MACD Multi-color Histogram

Accelerator Oscillator (AC) Accelerator Oscillator (AC)

The Acceleration/Deceleration Indicator (AC) measures acceleration and deceleration of the current driving force.

MACD Signals MACD Signals

Indicator edition for new platform.