Follow the EA installation and activation guide for file locations, chart setup and troubleshooting. Use this tool’s own inputs and dependencies.
Already have a compatible account? You can use it. Otherwise, compare broker eligibility, platforms and costs.
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.

What this MT5 EA does
- Uses OrderCalcProfit in account currency, an editable commission estimate and broker volume steps.
- Two-step Review Buy / Review Sell and Confirm Demo controls; ten-second confirmation expiry.
- Checks spread, stop placement, available margin and a cooperating Account Risk Guard pause signal.
- Refuses to merge a new order into an existing netting position on the same symbol.
Inputs and default settings
These are the defaults in the supplied source. Review them for your account, exact broker symbol and intended test. They are not optimised trading recommendations.
| Input | Default |
|---|---|
EnableDemoOrders | false |
RiskPercent | 0.5 |
StopPrice | 0 |
TargetPrice | 0 |
RoundTripCommissionPerLot | 7 |
MagicNumber | 260916 |
MaximumSpreadPoints | 30 |
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
- Extract the ZIP and read its README before attaching any file.
- In MT5, choose File → Open Data Folder. Copy the MQ5, EX5 and TFCommon.mqh files together into MQL5/Experts/TradeForex.
- Refresh Navigator and attach the EA to a chart in an isolated demo or tester. Review its inputs and data requirements.
- 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
The following checklist is pending. It is not a report of passed runtime tests.
- 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: 28,401 bytes. SHA-256: 47f913c24c1f3c98dff201005beca2edb364b00e1c3f7e1153f3e4d16a7c56e6.
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?
MetaEditor build 6180 compiled the supplied release with zero errors and zero warnings. The runtime acceptance checklist, backtests and forward tests are still pending.
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.
