Avalanche AV: A Unique EA for MetaTrader 5 Traders

Mike 2018.09.28 00:39 30 0 0
Attachments

Idea by: Murad Ismayilov

MQL5 Code Author: barabashkakvn

The Avalanche AV is an intriguing variation of the popular Avalanche EA, designed specifically for MetaTrader 5 users.

WARNING: This EA utilizes a martingale strategy!


How It Works

This EA selects trade directions using a random number generator called MathRand. If the generated number is below 16384, it triggers a Buy order; otherwise, it opens a Sell order. Trading kicks off with a volume defined by Start Lots, and you can disable Stop Loss and Take Profit by setting them to "0.0".


Position Volume Calculation

General Principle: If the last trade resulted in a loss, the next position's volume increases by a factor defined as Volume expansion factor. This volume is calculated using the Types of trade transactions and Deal properties for market exits.

Notes: The EA keeps track of the highest account balance in the m_prev_balance_max variable and monitors for 'not enough money' errors when opening new positions. The volume will continue to increase until a profitable trade closes, provided the account balance surpasses m_prev_balance_max. If the 'not enough money' error occurs, the calculated volume resets back to Start Lots.

Here are examples of test results in the "Every tick based on real ticks" mode:

Avalanche AV test 1

Avalanche AV test 2

List
Comments 0