Watch how to download trading robots for free
Find us on Telegram!
Join our fan page
Interesting script?
So post a link to it -
let others appraise it
You liked the script? Try it in the MetaTrader 5 terminal
Libraries

To Close All Open Trades of Different Symbols - library for MetaTrader 5

Views:
244
Rating:
(1)
Published:
Updated:
Close All.mqh (0.92 KB) view
ca.png (14.21 KB)
MQL5 Freelance Need a robot or indicator based on this code? Order it on Freelance Go to Freelance
TradeCloserLib is a professional MQL5 library designed for automated trading systems, providing reliable functions to close open positions across single symbols, all symbols, or by magic number.

Key Features
ClosePositions(symbol): Closes all open positions for a specified symbol (or current chart symbol if none provided).

CloseAllPositions(): Closes positions across all symbols with open trades, collecting unique symbols first to avoid duplication.

CloseByMagic(magic): Targets positions by specific magic number, supporting multi-EA environments.

ZigZag Support and Resistance Detection ZigZag Support and Resistance Detection

ZigZag SNR Detection identifies support and resistance levels using ZigZag pivot points.

Pro MA Crossover EA for MT5 - Free Source Code and Template Pro MA Crossover EA for MT5 - Free Source Code and Template

This EA serves as a template for traders interested in automating strategies in MT5. It implements a Moving Average crossover system and can be used as-is or customized by adjusting its settings. The free source code is designed to be easily modified for adding new indicators, logic, and trading features.

Institutional Currency Exposure Monitor Institutional Currency Exposure Monitor

An institutional-grade dashboard that breaks down your open positions and calculates your true net lot exposure per individual currency, preventing invisible systemic risks and over-leveraging.

MACD Signals MACD Signals

Indicator edition for new platform.