Profit Tag for Closed Trades - MetaTrader 5 Expert | MT5 EA Download - MetaTrader 5 Resources




A simple demonstration showing how to write a profit and loss label for a recently completed transaction.
The EA will trade virtually so you can see how it will look in the strategy tester. From now on, tags will only be formed on transactions (not on transaction history).
I wrote a solution using the Canvas library and the standard library. There are two inputs that let you choose between using a Canvas and using the text and rectangle objects from the standard library. If you think there is a better solution, feel free to improve the code.
Use standard objects:
Attachment download
📎 profit_labels.mq5 (18.38 KB)
Source: MQL5 #54352
Profit tag for closed trades - MetaTrader 5 Expert | MT5 EA Download - MetaTrader 5 resource usage and screening recommendations
Profit tag for closed trades - MetaTrader 5 Expert | MT5 EA Download - MetaTrader 5 resources are MT5 EA related resources. Before downloading or referencing, it is recommended to confirm the platform version, transaction type, time period, whether DLL is required, whether source code is included, parameter description and historical update records.
Both automated trading tools and foreign exchange indicators should first undergo backtesting, simulated account observation, and small capital verification. Pay special attention to spreads, slippages, maximum drawdowns, position opening frequency, stop loss methods, trading periods and broker rules, and avoid direct real-time execution based on titles or short-term profit descriptions.
💡 Featured Recommendations
✍️ Latest by the author
- •
- •
- •
- •
- •
- •
📌 Popular topics
- •
- •
- •
- •
- •
- •
- •
- •
🔗 You May Be Interested In
- •
- •
- •
- •
- •
- •