MT5 research beta · Expert advisor

TF Position Manager for MT5

Preview a risk-sized market order from a chosen stop, then explicitly confirm it on a demo account. Real-account order operations are disabled.

MQL5 source, EX5, README and SHA-256 checksums. Research beta.

Concept illustration for TF Position Manager for MT5; not a software screenshot
Concept illustration; not a software screenshot or a performance result.
New research / Utilities

A management or logging tool, not a standalone return-generating strategy. Functionality is assessed through acceptance checks, not a profitability curve.

Functional workflow

How this utility is used

  1. Preview a risk-sized market order from a chosen stop.
  2. Review buy/sell, then explicitly confirm within ten seconds.
  3. Real-account order operations are disabled; EnableDemoOrders defaults false.

What this MT5 EA does

  1. Uses OrderCalcProfit in account currency, an editable commission estimate and broker volume steps.
  2. Two-step Review Buy / Review Sell and Confirm Demo controls; ten-second confirmation expiry.
  3. Checks spread, stop placement, available margin and a cooperating Account Risk Guard pause signal.
  4. Refuses to merge a new order into an existing netting position on the same symbol.

Adjust the utility settings

Adjust the actual MT5 inputs below, then download a .set file. Load it through Strategy Tester → Inputs → Load. The EA ZIP includes source code and the compiled file.

Source defaults loaded.

Utility settings · 7 inputs

Changes apply to your downloaded file. They do not change the published tests.

Preview the .set file

Limitations and failure conditions

  • EnableDemoOrders is false by default; StopPrice must be set. Market fills and gaps can exceed estimated stop risk.
  • Commission is an input, not a broker fee lookup. Slippage is not included in the displayed risk estimate.
  • The order is recalculated at confirmation; a movement beyond ten platform points requires a new review.
  • The EA must be removed and reattached after changing accounts. No live-account execution is supported.

Install in MetaTrader 5

  1. Extract the ZIP and read its README before attaching any file.
  2. In MT5, choose File → Open Data Folder. Copy the MQ5, EX5 and TFCommon.mqh files together into MQL5/Experts/TradeForex.
  3. Refresh Navigator and attach the EA to a chart in an isolated demo or tester. Review its inputs and data requirements.
  4. Use one instance per chart. Reattach after changing accounts; retain the documented state files and settings when testing restarts.

No broker password, web API key or DLL permission is required by this package.

Acceptance checks before relying on it

Native functional checks cover the recorded subset. The checklist below also includes cases that still require your own demo validation; not every scenario is certified as passed.

  • With demo orders disabled, verify that review and confirmation send no orders.
  • Compare the preview against MT5 profit and margin calculations for a small FX and a CFD example.
  • On an isolated demo, inspect buy and sell stops, volume rounding, wrong-side stops, a spread rejection and confirmation expiry.
  • Verify rejection when a net position already exists and while the matching guard pause signal is active.

Download contents and integrity

The ZIP contains MQL5 source, the compiled EX5, TFCommon.mqh, README.md, MIT licence, TEST-STATUS.json and SHA256SUMS.txt.

ZIP size: 30,489 bytes. SHA-256: a141575bb48e831a7f14a13a2396d99f99879a2a5b4e7c5dd6e2879d0f17ab5f.

Download EA source and EX5

See how we distinguish compilation, demo testing and trading evidence.

Frequently asked questions

Does this tool work in MT4?

No. This package contains MQL5 source and an EX5 build for MetaTrader 5 desktop. MT4 requires a different codebase; mobile and web charts do not run this desktop file.

What has been tested?

The updated research build compiled with zero errors and zero warnings and passed the documented native functional acceptance checks. Netting and prolonged forward operation remain unverified. No profitability result is assigned to a management or logging utility.

Can it trade on a live account?

Order-changing functions in this release refuse real accounts and are disabled by default. Use an isolated demo or the Strategy Tester. The Execution Logger only records events and never sends orders.

Related tools and guides

Educational research, not personal investment advice. CFDs are leveraged products and can cause rapid losses. A calculation, indicator or stop cannot guarantee an account outcome.

Follow on Facebook