MT4 / MT5Apache-2.0Scriptスクリプト

Close All Orders / Positions

Close a defined set of trades in one operation rather than handling each position manually.

複数の取引を一つずつ手で閉じる代わりに、対象を決めて一括決済するスクリプトです。

Get source from author原作者のソースを開く ↗

What it does

仕組みと使い道

The script closes MT4 trades or MT5 positions according to configurable filtering and ordering preferences.

設定した絞り込みと順序に応じて、MT4の取引またはMT5のポジションを閉じます。

Settings to understand first

最初に確認する設定

Install in the correct Scripts folder. Before any use, inspect every filter on demo, including a trade that should remain untouched. Review the broker’s actual close results afterward.

対応するScriptsフォルダーへ導入し、デモで全フィルターを確認します。閉じない対象も含めて試し、実行後に業者の決済結果を照合します。

What to watch out for

注意点と制約

Running the script can immediately submit closing orders. A partial failure can leave some trades open; a matching filter is more important than the product’s “all” label.

実行すると直ちに決済注文が送られる場合があります。一部の拒否で建玉が残ることもあるため、名前の「All」だけで対象や完了を判断しないでください。

Install, inspect, then test

導入から検証まで

  1. Open the original author repository below and read its current LICENSE and installation instructions. Get the matching source folder or repository ZIP from that author; no source package for this item is mirrored by BSV.
  2. In the matching desktop terminal choose File → Open Data Folder. Copy this script source under MQL4/Scripts or MQL5/Scripts. Preserve include/folder structure if the author’s package has it.
  3. Open the matching MetaEditor, compile the main source, and resolve errors and missing dependencies. Check the tool-specific notes before enabling any permission. Do not enable DLL or external-web access simply to make an error disappear.
  4. On an isolated demo account, verify target filters before running the script. Include an order that must remain untouched; inspect actual results and partial failures afterward.
  1. 下の原作者リポジトリで、現行のLICENSEと導入手順を読みます。対応するソースフォルダーまたはリポジトリZIPを原配布元から取得します。この項目のソース一式はBSVでは複製配布していません。
  2. 対応するデスクトップ版で「ファイル→データフォルダを開く」を選び、スクリプトをMQL4/ScriptsまたはMQL5/Scriptsへ置きます。作者のパッケージに付属フォルダがある場合は階層を崩しません。
  3. 対応するMetaEditorで本体をコンパイルし、エラーと依存不足を確認します。各ツールの注意点を読み、エラーを消す目的だけでDLLや外部通信を許可しないでください。
  4. 隔離したデモ口座で、実行前に対象の絞り込みを確認します。対象外として残す注文も用意し、実行後の結果と一部失敗を確認します。

Source and license

ソースとライセンス

This is an author-hosted source listing, not a BSV mirror. The author repository is explicitly licensed Apache-2.0. BSV has checked the upstream listing and description, not every file or dependency. No runtime verification is claimed.

原作者が配布するソースの案内で、BSVでの複製配布ではありません。原作者リポジトリのApache-2.0表示と説明を確認していますが、全ファイル・依存関係の個別監査はしていません。実行検証済みとは表示しません。

Read the author’s setup and full documentation原作者の導入手順・全機能を読む
Original author原作者
EarnForex
Licenseライセンス
Apache-2.0
Source version取得対象の版
Author default branch; may change
Checked確認日
2026-10-01
Evidence出典
Original license原作者のライセンス