MQL5 Algo Trading
388K subscribers
2.56K photos
2.56K links
The best publications of the largest community of algotraders.

Subscribe to stay up-to-date with modern technologies and trading programs development.
Download Telegram
A new script has been designed to provide comprehensive details on brokers, accounts, and instrument specifications. It builds upon the "MQL4 Reference / Constants, Enumerations and Structures / Environment State / Symbol Properties." This script also derives inspiration from the "Market Info" script by Sergey Mechanic, which can be found in code repository 11223.

Through detailed comparison, the script's output has been matched against the "contract specification" available via platform navigation (View / Symbols / Properties), ensuring accuracy and reliability. The results from this comparison confirm the script’s consistency and usefulness in extracting essential data. This tool proves beneficial for developers and analysts in checking and verifying the contract details of trading instruments directly within the trading environment.

👉 Read | VPS | Share!

#MQL4 #MT4 #script
👍3118👌2👨‍💻2👀2
A new script for MetaTrader 5 offers features for precise trading risk management: users can set customizable Risk:Reward ratios and define Stop Loss in pips. The script automatically calculates and applies SL and TP levels based on open positions, whether Buy or Sell. It presents a user-friendly interface with error handling for various market conditions.

To implement, attach the script to the MT5 chart and configure parameters. The script detects open positions for the current symbol and applies the calculated levels, confirming modifications in the MT5 terminal.

This tool saves time by eliminating manual calculations, ensures consistency in trading strategy, and is versatile across various symbols and account types. Installation involves downloading from the MQL5 Codebase and following outlined steps. Testing on a demo account is advised for familiar...

👉 Read | AlgoBook | Share!

#MQL5 #MT5 #Script
39👍123👨‍💻2
A script designed to manage buy orders effectively requires attention to its setup and functionality. Primarily, this script enables the partial closure of profitable buy orders while allowing other orders to reach their target profits. Essential parameters include `ClosePercentage`, which defines the portion of each buy position to be closed, and `Slippage`, which determines the maximum slippage in points. The `CommentText` parameter filters positions by specific comments if desired.

Key features include compatibility with multiple buy positions and the preservation of original stop loss and take profit levels for the remaining lots. It safeguards minimum volume requirements, handles errors, and provides operational feedback.

To implement, copy and compile the code in MetaEditor. The script will be accessible in the Navigator under "Scripts" and can be ex...

👉 Read | AlgoBook | @mql5dev

#MQL5 #MT5 #script
32👨‍💻9👌43🔥2🤝2🎉1
A new script targets efficient trade management by partially closing profitable sell orders while maintaining other open positions for target profits. Upon execution, details can be reviewed in the Experts tab. Key input parameters include:

- ClosePercentage: Determines the portion of each sell position to close, ranging from 0 to 100.
- Slippage: Sets the maximum permissible slippage in points.
- CommentText: Optionally close positions based on specific comments.

Key features of the script include handling multiple sell positions, preserving original stop loss and take profit levels, validating minimum volume requirements, and error management with feedback. For installation, transfer the code to MetaEditor and compile. The script will then be accessible under "Scripts" in the Navigator panel. To execute, drag it onto any chart. Caution: it closes a speci...

👉 Read | AppStore | @mql5dev

#MQL5 #MT5 #Script
37👍9👨‍💻32🏆2
The script is designed to handle transaction history export efficiently. It compiles data on all transactions for the past year for the current instrument. Key functionalities include support for both cryptocurrencies and traditional currencies with automatic commission calculations based on the instrument type. Numbers are formatted for readability, with totals for commissions, profit/loss, and trade counts appended at the file's end.

Usage instructions are straightforward: ensure trade history is loaded in your terminal, place the script on the desired instrument's chart, and execute it. This will generate a CSV file stored in the MQL5/Files directory, aptly named with trades_symbol_date_time.

The benefits are notable: ease of use, flexibility across various instruments, and transparency, with all data consolidated in one file. Remember to check t...

👉 Read | AlgoBook | @mql5dev

#MQL5 #MT5 #script
37👍743👨‍💻3