Welcome Forex EA downloads & MT4/MT5 auto-trading resources — EAs, Gold EAs, quant tools and real-world automation.
Sign In Sign Up

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

author EAcpu | 3 reads | 0 comments |

Avalanche AV - expert for MetaTrader 5

Avalanche AV - expert for MetaTrader 5

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:

Avalanche AV - expert for MetaTrader 5

Avalanche AV - expert for MetaTrader 5


Attachment download

📎 avalanche_av.mq5 (33.95 KB)

Source: MQL5 #21727

Verification code Refresh