Simple Auto Trend Folowing EA For MT5
Hi everyone, I have developed an interesting robot for trend trading , and since this is its essence, I recommend using it in assets with this characteristic, such as stocks and indices.
Feel free to test, perform optimizations and share the results here
Transaction logic:
Closing transaction:
Feel free to test, perform optimizations and share the results here
Transaction logic:
- Buying conditions (long):
The bot will buy when the price breaks through a specific level defined by the ATR value multiplier, indicating a potential uptrend. Open a buy position only if long positions are allowed and there are no short positions.
- Conditions of sale (brief):
The robot sells when the price falls below a certain level, indicating a possible downtrend. Sells will only be executed if short positions are allowed and there are no open buy positions.
Closing transaction:
- Buy at closing:
The buy position will be closed if the price breaks below the lower level, signaling a reversal or reaches take profit or defined stop loss, whichever occurs first - To close a position and sell:
The sell position is closed when the price breaks through the upper limit, which also indicates a reversal or the take profit or defined stop loss is reached, whichever occurs first
Stop Loss, Take Profit and Trailing Stop:
Stop loss and take profit levels are automatically set using the ATR multiplier, which adjusts based on market fluctuations. Additionally, the Trailing Stop feature moves the stop when the trade is profitable, helping to lock in profits.
APPL capital curve in the first half of the past 10 years
Below I also attach the parameters used in this optimization.
























Attachment to original post (2)
📦 Summary of post attachments (2)
Below are all the files (2) shared in the reply.
💡 Featured Recommendations
✍️ Latest by the author
- •
- •
- •
- •
- •
- •
📌 Popular topics
- •
- •
- •
- •
- •
- •
- •
- •
🔗 You May Be Interested In
- •
- •
- •
- •
- •
- •