Hidden Stop Loss and Take Profit System - MetaTrader 4 Library | MT4 EA Download - MetaTrader 4 Resources
The attached file represents a class system that can be used to simulate a hidden stop loss and take profit system, but in addition to that it creates real time stop loss and take profit in the trade in case the connection between the client and the broker's server fails. There are also 4 EA examples. A basic description of how the system works is as follows:
To get your system working properly, use the following procedure:
The system has only undergone some basic testing. It has not been tested in a real environment or incorporated into an actual trading system, so please be careful and be aware of possible errors.
I consider this a work in progress and hopefully can improve it later when I have more time.
Attachment download
📎 globalchartfunctions.mqh (3.56 KB)
📎 c_trade.mqh (23.1 KB)
📎 c_trade_trailingstoploss.mqh (10.61 KB)
📎 c_trade_steppedstoploss.mqh (15.26 KB)
📎 c_trade_pending.mqh (5.86 KB)
📎 c_trade_basicexample_1.mq4 (5.38 KB)
📎 c_trade_pending_4.mq4 (7.72 KB)
📎 c_trade_steppedstoploss_3.mq4 (5.79 KB)
📎 c_trade_trailingstoploss_2.mq4 (4.69 KB)
Source: MQL5 #19149
💡 Featured Recommendations
✍️ Latest by the author
- •
- •
- •
- •
- •
- •
📌 Popular topics
- •
- •
- •
- •
- •
- •
- •
- •
🔗 You May Be Interested In
- •
- •
- •
- •
- •
- •