DCA Achira Meegasthanne
- Uzmanlar
- Sürüm: 1.10
DCA by Achira Meegasthanne is an automated Expert Advisor based on a Dynamic Cost Averaging (DCA) approach. The EA is designed to build a position progressively when market conditions remain aligned with the selected trend direction.
The strategy combines an EMA-based trend filter, configurable price-step parameters, and position averaging logic to determine when to open additional buy positions and when to exit the accumulated position.
Main Settings
📈 EMA Trend Filter
The EA uses an Exponential Moving Average (EMA) to identify the current market direction.
-
Configurable EMA period
-
Buy entries are considered when the current price is above the EMA
-
Helps keep the strategy aligned with the prevailing upward market condition
💰 Dynamic Cost Averaging
When the market moves against the initial entry while the trend condition remains valid, the EA can add another position at a lower price.
The average entry price is recalculated after each additional entry.
🎯 Dynamic Take Profit
The take-profit level is calculated from the weighted average entry price.
As additional positions are added, the EA recalculates the average price and updates the target accordingly.
⚙️ Fully Configurable Parameters
The main strategy parameters can be adjusted according to your trading requirements:
-
StepFactor — controls the take-profit multiplier
-
LevelFactor — controls the price distance used for additional entries
-
MAPeriod — EMA period used for trend filtering
-
lotSize — trading volume for each order
📊 Visual Take-Profit Level
The EA displays the current calculated TP level directly on the chart using a horizontal line and price label.
This makes it easy to monitor the current target while the EA is running.
🔄 Automatic Position Management
The EA automatically:
-
Detects the configured trend condition.
-
Opens the initial buy position.
-
Monitors price movement.
-
Adds positions when the averaging condition is reached.
-
Recalculates the weighted average price.
-
Updates the take-profit target.
-
Closes the managed positions when the target condition is reached.
Important Risk Warning
This Expert Advisor uses a DCA/averaging methodology, which means multiple positions may be opened as the market moves against an existing position.
DCA strategies can increase exposure during prolonged adverse market movements and may result in significant drawdown or loss.
No trading strategy or Expert Advisor can guarantee profits.
Before using the EA on a live account, it is strongly recommended to test it in the Strategy Tester and on a demo account under different market conditions. Use appropriate risk management and carefully consider the trading volume and account size.
Recommended Usage
For best evaluation, test the EA with:
-
Different symbols
-
Different timeframes
-
Different EMA periods
-
Different StepFactor and LevelFactor values
-
Different market conditions
-
Multiple years of historical data
The EA's behavior and results can vary significantly depending on the symbol, broker conditions, spread, leverage, account balance, and market environment.
Product Name: DCA by Achira Meegasthanne
Strategy Type: Dynamic Cost Averaging / Trend-Following
Primary Direction: Buy
Trend Filter: EMA
Platform: MetaTrader 5
