MA Custom Trailing Stop - Update 4 - MetaTrader 5 Expert - MT4/MT5 Resources
This is my first time trying to create an EA from scratch
The EA only tracks and therefore does not automatically buy/sell
***** Please Note: The default values are adjusted based on the M1 timeframe, this is the easiest way for me to test how it works, but it works on all timeframes and currency pairs*****
In addition to the MA parameters, it also has some trailing options
The code may be further optimized
Please feel free to post suggestions, changes to the code to improve it, or any questions about its working
I've been trying to control the appearance of the indicator - lines, color and style. Any help welcome
Update 2 (V1.2)
Update 3 (V1.3)
Coming soon: Class Library
Attachment download
📎 my_ts15.mq5 (10.6 KB)
Source: MQL5 #29797
MA Custom Trailing Stop - Update 4 - MetaTrader 5 Expert - MT4/MT5 Resource Usage and Screening Suggestions
This content can be used as a data entry for foreign exchange EA, indicators, trading systems or quantitative strategies. When reading, it is recommended to make a judgment based on the platform version, trading type, time period, risk control method and historical discussion background. Do not use it directly based on the title or a single point of view.
If the content involves MT4/MT5, ForexFactory, MQL source code, TradingView indicators or strategy discussions, you can give priority to the parameter logic, backtest environment, market stage, execution cost and failure conditions, and then decide whether to continue downloading, reviewing or secondary development.
Risk warning
For any EA, indicator or automatic trading strategy, it is recommended to first conduct historical backtesting, simulation account verification and small capital testing. Grid, Martin, high frequency, recovery and examination strategies especially require setting the account risk upper limit, single variety risk upper limit and manual deactivation conditions.
💡 Featured Recommendations
✍️ Latest by the author
- •
- •
- •
- •
- •
- •
📌 Popular topics
- •
- •
- •
- •
- •
- •
- •
- •
🔗 You May Be Interested In
- •
- •
- •
- •
- •
- •