One function for 14 trade management tasks in MetaTrader 5.
Closes positions and deletes pending orders with filtering by type, profitability and magic number.
All positions / only profitable / only losing positions
BUY only / SELL only
BUY profitable / BUY unprofitable
SELL profitable / SELL losing
All pending orders / only Buy Stop / only Buy Limit
Only Sell Stop / only Sell Limit
// Call Examples: Close_Orders("Position", "All", 0); // All positions Close_Orders("Position", "Buy Profit", 123); // Profitable BUY with magik 123 Close_Orders("Order", "Buy Stop", 0); // All Buy Stop orders
p_o : " Position" or "Order" .
type_po : Filter type (see options above)
magicNumber : Magic (0 = all)
Simplicity - one call instead of 14 functions
Flexibility - fine filtering of trades
Safety - proper handling of loops
Versatility - for Expert Advisors, scripts, indicators
deviation = 5 - optimal price tolerance
Iteration from the end - safe deletion
Local variables - query isolation
#include <Close_Orders.mqh> // Ready to use!
Translated from Russian by MetaQuotes Ltd.
Original code: https://www.mql5.com/ru/code/68469
ICE (Impulse Confirmation Engine)
ICE Pro v1.0: Momentum Intelligence System. ICE isn't just a static indicator-based EA (Expert Advisor). It's an Adaptive Trading engine that uses volatility (ATR) and volume profiles as primary filters to determine which price movements are "True Impulses" and which are simply "Market Noise."
SessionRangeBoxes
Draws colored range boxes for the Asian, London, and New York sessions on any chart. Includes a stats panel showing average session ranges in pips and optional breakout alerts when price exits a session box.
Fractal Maturity Oscillator FMO
The FMO indicator is a technical analysis tool that measures "trend age" using fractal cycles. Its purpose is to help traders determine whether a trend is still young (safe to follow) or over-aged (high risk). A Conceptual Synthesis of Psychology, Sociology, and Life Cycles This work presents a deep analysis of human life through a numerical matrix (3, 7, 39, 49), using it as a conceptual lens for understanding psychology, sociology, and developmental cycles. It is not a conventional scientific framework. Rather, it is a synthesized model — integrating esoteric, psychological, and sociological perspectives into a unified cyclical structure. The goal is to organize and interpret human development through layered, interacting cycles.
MASTER-WINNERFX-Asim
Trend based grid Expert Advisor for MetaTrader 5 using EMA and RSI indicators. Dynamic lot size is calculated from account balance with minimum and maximum lot protection. Initial trade opens when price confirms trend direction relative to EMA and RSI levels. Grid orders are added at fixed point distance using controlled multiplier. All trades are managed as a basket and closed at defined profit target or maximum loss level. Includes optional news hour pause and market close filter. No DLL or external services required.