A small include file that looks after the positions an EA, a trader or another EA has already opened. It only moves stops and closes part or all of a position. It never opens a trade. 
What it does
How it works
Use
#include "ATS_TradeMgmtLib.mqh" CAtsTradeMgmt mgmt; SAtsMgmtConfig cfg; mgmt.DefaultConfig(cfg); cfg.useBreakEven = true; cfg.beUnit = ATS_UNIT_R; cfg.beTrigger = 1.0; cfg.trailMode = ATS_TRAIL_CANDLES; cfg.trailBars = 3; cfg.trailStart = 1.5; mgmt.Init(cfg, "", ""); // every symbol, every magic number // in OnTimer(): mgmt.ManageAll();
The package: ATS_TradeMgmtLib.mqh (the library), ATS_TradeMgmt_Demo.mq5 (an example EA, a trade manager in a few lines), ATS_TradeMgmt_SelfTest.mq5 (36 checks of the calculations, run it as a script).
Good to know
Session Reality Auditor
Checks the broker's session table against the M1 history. For every minute of the week it counts on how many of the last N days the symbol really has a bar, and sets that next to SymbolInfoSessionQuote and SymbolInfoSessionTrade: declared minutes that are usually empty (rollover holes), bars in minutes the table calls closed, trade and quote tables that disagree, and one-off outages such as an early holiday close. Prints the real sessions per weekday, writes every finding to CSV and prints its own arithmetic. Read only: no trade function, no DLL, no network.
Advanced Prop-firm Trade Panel based on S-R
A manual trading panel with a built-in prop-firm risk guard and a hidden Support/Resistance finder for MetaTrader 5.
CajasTF – Integrated Multi-Timeframe Side Panel for MT5
Real-time multi-timeframe side panel mini-chart with smart color matching, independent price scale, and candle countdown timer.
Session Levels - Asian range, PDH/PDL, VWAP, swings and round numbers
Session Levels draws the reference levels intraday traders watch most: Asian range, London and New York sessions, previous day and week high/low, daily VWAP, swing points and round numbers. Hover any level to read what it is and why it matters. Optional alerts when price breaks the Asian range or the previous day high/low.