Avalanche AV - MetaTrader 5 Expert | MT5 EA Download - MetaTrader 5 Resources


Idea from : Murad Ismailov
MQL5 code author : Balabashka Kong
This Expert Advisor is one of the variants of Avalanche EA.
The trading direction is randomly selected mathematically according to the random number generator: if the quantity is less than 16384, buy is opened, otherwise sell is opened. Trades are batched starting with the volume. The Stop Loss and Take Profit can be disabled by setting the parameter to "0.0".
General principle : If the previous position is closed with a loss, the next transaction volume will be increased by the volume expansion coefficient times. Volume is calculated in OnTradeTransaction: trade transaction type and transaction properties (market exit) are tracked.
Notes : The Expert Advisor tracks the maximum account balance value (this value is stored in the m_prev_balance_max variable) and controls "insufficient funds" errors when opening a position. The position continues to increase until the last profit is closed, and the current trading account balance must exceed m_prev_balance_max . If the "not enough money" error is encountered (CheckVolume volume of the TradeNet class), the calculated volume is reset to the starting batch .
Example of a test chart in "Every tick based on real quotes" mode:


Attachment download
📎 avalanche_av.mq5 (33.95 KB)
Source: MQL5 #21727
💡 Featured Recommendations
✍️ Latest by the author
- •
- •
- •
- •
- •
- •
📌 Popular topics
- •
- •
- •
- •
- •
- •
- •
- •
🔗 You May Be Interested In
- •
- •
- •
- •
- •
- •