EMA Crossover Grid Trader
- Experts
- Adrian Patrascu
- Version: 2.0
- Updated: 26 June 2024
- Activations: 5
This EA combines an EMA crossover strategy with a grid trading strategy. It's the result of over a year of observations and tests. It can be used on currency pairs and metals. Ideally the 1H timeframe works best however it can be tested on any timeframe.
The algorithm is specifically designed to minimise drawdown; the EA will only place buy trades on an upward trend after the two EMAs cross, same logic for sell trades when the EMAs cross downwards. This method helps minimise drawdowns when reversals happen.
The user can set the grid step (in points) as well as the take profit level (in points). The EA will automatically place the trades according to user settings.
In addition, It adjusts the lot size based on account drawdown to manage risk and aims to capture profits by incrementally closing positions when the account equity increases by a specified amount.
The spread filter ensures that trades are only taken when the spread is within acceptable limits.
Here is a breakdown of the functionality and flow of the script:
EMA Crossover Grid Trader EA
The EMA Crossover Grid Trader EA is a powerful and versatile Expert Advisor designed for MetaTrader 5. Created by Adrian Patrascu, this EA combines the strength of an EMA crossover strategy with the flexibility of grid trading, offering a unique approach to capturing market trends and optimizing profit potential.
Key Input Parameters
Magic number: Unique identifier for the EA's trades.
Lot size: Initial lot size for trades.
Increment Lot: Increment lot size once a percentage of drawdown is increased. This adds a certain lot amount to the existing Lot size to better manage risks. (It’s best used when the edge of a channel is reached)
Reduction percentage for lot increase (10 = 10%): Percentage drawdown that triggers an increment in lot size.
Increment to close (in currency value): Equity increment to trigger the closing of all positions. It is measured in the currency. For example, once 100 (USD) is gained in equity it closes all trades and starts again.
Take profit (Points): Take profit level in points.
Grid step (Points): Grid step in points.
Spread filter: Maximum allowable spread for opening a position.
Fast MA Period: Period for the fast EMA.
Slow MA Period: Period for the slow EMA.
Reverse option?: If true, reverses the buy and sell logic. It places sells once the two EMAs cross upwards and buys when they cross downwards.
Key Features
EMA Crossover Strategy:
Utilizes a fast and a slow Exponential Moving Average (EMA) to identify the entry points.
Buys when the fast EMA crosses above the slow EMA, and sells when the fast EMA crosses below the slow EMA.
There is the option to reverse the buy and sell logic.
Grid Trading:
Implements a grid trading strategy to capitalize on market fluctuations.
Automatically places new trades at specified grid intervals.
Adjusts the grid entry points based on market movements to maximize profit opportunities.
Dynamic Lot Sizing:
Adjusts lot size dynamically based on account drawdown to manage risk effectively.
Increases lot size incrementally as drawdown reaches predefined levels, ensuring optimal position sizing.
Risk Management:
Includes a spread filter to ensure trades are only executed when market conditions are favourable.
Features a take-profit mechanism to secure gains on each trade.
Closes all positions when the account equity exceeds a specified increment above the initial balance, locking in profits.
Customization:
Fully customizable input parameters to suit individual trading styles and risk tolerance.
Magic Number to differentiate trades placed by this EA from others.
Adjustable fast and slow EMA periods, grid step size, lot size, take profit level, and more.
How It Works
Initialization: The EA sets up the fast and slow EMAs based on user-defined periods and initializes the trading parameters.
On Each Tick: The EA updates market prices and evaluates trade entry and exit conditions.
Trade Entry
The EA checks for EMA crossovers to initiate buy or sell trades.
It also evaluates grid levels to place additional trades based on market movements.
Lot Sizing: The EA calculates the appropriate lot size based on the current account drawdown and predefined parameters.
Trade Exit
Positions are closed when the account equity surpasses a specified increment above the initial balance.
Ensures profits are secured and drawdowns are managed effectively.
Enhance your trading strategy with the EMA Crossover Grid Trader EA, designed to combine the robustness of EMA crossovers with the precision of grid trading. Optimize your market entries, manage risk dynamically, and maximize your profit potential.
Get the EMA Crossover Grid Trader EA today and elevate your trading experience!
For more information send me a message on my profile!