COMPLETE EXPERT ADVISOR SPECIFICATION for DCA (STEPS 1–8)

MQL5 Experts

Specification

📘 COMPLETE EXPERT ADVISOR SPECIFICATION (STEPS 1–8)
===========================================================

🧩 STEP 1: TRADE DIRECTION & ORDER MANAGEMENT

EnableTrading                             = true
TradeDirection                            = "Both"          // Options: "Long", "Short", "Both"
OpenTradeMode                             = "Limited"       // Options: "Single", "Limited", "Unlimited"
MaxOpenTrades                             = 3
MagicNumber                               = 10001
EnableHedging                             = true
MaxHedgedPositions                        = 2

🛠 Developer Notes:
- EA must auto-detect Symbol() and Period().
- Must manage only its own trades using MagicNumber.
- TradeDirection, OpenTradeMode, and MagicNumber are mandatory logic inputs.


📦 STEP 2: ENTRY CONDITION ENGINE (MODULAR MULTI-INDICATOR LOGIC)

Indicator Logic Includes:
- Multiple indicators with custom settings
- Overlap filter

Supported Indicators:
- RSI, CCI, Custom Indicators

Trigger Modes:
- AllActiveIndicatorsMustConfirm
- AnyActiveIndicatorCanTrigger



🛠 Developer Notes:
- Every indicator supports Enable, Timeframe, EntryDirectionType, and SignalPriority.
- Must support multiple instances of the same indicator.


🧱 STEP 3: BASE ORDER EXECUTION

Enable_Base_Order                         = true
Base_Order_Entry_Type                     = "Market"        // or "Limit"
Base_Order_Expiration_Minutes             = 10

Base_Order_Lot_Size_Mode                  = "Fixed"         // or "AutoRisk"
Base_Order_Lot_Size                       = 0.10
Base_Order_AutoRisk_Percent               = 2.0
Minimum_Lot_Size                          = 0.01



Enable_Custom_Trade_Comment               = true
Base_Order_Comment                        = "BaseOrder"

Adaptive Limit Pricing:
Enable_Adaptive_Limit_Price               = true
Limit_Order_Adjust_Every_X_Min            = 1
Limit_Order_Adjust_Pips                   = 2
Limit_Order_Adjust_Direction              = "Follow"
Limit_Order_Max_Adjustments               = 5editable 10 or /unlimited


🌀 STEP 4: DCA (AVERAGING) SYSTEM

Enable_DCA_System                         = true
DCA_Activation_Mode                       = (PriceOnly/pips/percentage)"/ indicator only
DCA_Trade_Direction                       = "SameAsBase"


DCA_Order_Trigger_Based_On                = "Price"
DCA_Order_Price_Deviation_Type            = "Fixed"
DCA_Deviation_Value                       = 0.1%
DCA_Order_Spacing_Multiplier              = 1.3

DCA_Base_Lot_Size                         = 0.01  0.011= 0.01
Use_Lot_Size_Multiplier                   = true
DCA_Lot_Multiplier                        = 1.1
Apply_Multiplier_Every_X_Orders           = 3
Lot_Size_Rounding_Method                  = "StepIncrement"
Lot_Size_Step_Increment                   = 0.01

DCA_Order_Type                            = "Limit"

Enable_DCA_Max_Order_Limit                = true
Max_DCA_Orders_Per_Cycle                  = 10
Reset_DCA_Cycle_On_Profit_Exit            = true
Reset_DCA_Cycle_On_Manual_Close           = true
Reset_DCA_Cycle_On_StopLoss_Hit           = true

Enable_Global_DCA_Trade_Limit             = true
Max_Total_Active_DCA_Orders               = 25
Pause_Trading_After_DCA_Exhausted         = true
Pause_Duration_Minutes                    = 60

Allow_DCA_Resume_After_Max_Limit          = true
DCA_Resume_Mode                           = "FromLast"
Manual_Resume_Start_Price                 = 1905.00
Manual_Resume_Lot_Size                    = 0.02

Enable_Manual_DCA_Injection               = true
Manual_DCA_Entry_Price                    = 1910.50
Manual_DCA_Lot_Size                       = 0.02
Manual_DCA_Order_Type                     = "Limit"
Inject_Manual_DCA_Button                  = true


🎯 STEP 5: TAKE PROFIT (TP) SYSTEM

Enable_Take_Profit_System                 = true
TP_Calculation_Based_On                   = "BasketAverage"
Take_Profit_Mode                          = "Fixed"          // or "Trailing", "Indicator"
TP_Target_Type                            = "Percent"
TP_Target_Value                           = 1.5

Enable_Trailing_TP                        = true
Trailing_TP_Start_Profit_Pips             = 30
Trailing_TP_Distance_Pips                 = 20
Minimum_Profit_To_Start_Trailing          = 15

Enable_Indicator_TP                       = true
TP_Indicator_Type                         = "BollingerBand"
Indicator_TP_Trigger_Logic                = "TouchOrCross"
Require_Active_Profit_For_Indicator_TP    = true
Indicator_TP_Timeframe                    = "M15"
Indicator_TP_Signal_Candle_Lookback       = 1

TP_Execution_Type                         = "Full"           // or "Partial"
Enable_Partial_TP                         = true
Partial_TP_Percentage                     = 50
Remaining_Position_Behavior               = "Trail"

Max_Allowed_TP_Slippage_Pips              = 3


🛡 STEP 6: STOP LOSS (SL) SYSTEM

Enable_RiskReward_Based_SLTP              = true
SLTP_Mode_Based_On                        = "Fixed_TP"
Risk_Reward_Multiplier                    = 2.0
Allow_Manual_Override_RR                  = true

Enable_Stop_Loss_System                   = true
SL_Calculation_Based_On                   = "BasketAverage"
SL_Type                                   = "Pips"
SL_Value                                  = 100

Enable_Breakeven_After_TP                 = true
Breakeven_Trigger_Type                    = "PartialTPHit"
Custom_Profit_Level_To_Breakeven          = 1.5

Enable_Emergency_Equity_SL                = true
Emergency_Equity_Drawdown_Type            = "FixedAmount"
Emergency_Equity_Drawdown_Threshold       = 300

Enable_Direction_Locked_SL                = true
Enable_SL_Expiry_Timeout                  = false
SL_Timeout_Candles                        = 10
Max_Allowed_SL_Slippage_Pips              = 3
Allow_Manual_SL_Close                     = true
Allow_SL_Override_By_Trailing             = true

Enable_Indicator_Based_SL                 = true
SL_Indicator_Type                         = "PSAR"
SL_Indicator_Timeframe                    = "M15"
SL_Refresh_Period_Candles                 = 1
Indicator_SL_Trail_Mode                   = "Dynamic"
Minimum_Price_Buffer_Pips_Below_Indicator = 5
Allow_Indicator_SL_To_Override_Fixed_SL   = true
Activate_Indicator_SL_After_Candles       = 3

Enable_Trailing_Stop_Loss                 = true
Trailing_Trigger_Profit_Pips              = 50
Trailing_Stop_Distance_Pips               = 30
Trailing_Step_Pips                        = 5
TSL_Activation_Mode                       = "AfterTrigger"

SL_Conflict_Resolution_Priority           = "IndicatorFirst"


🔒 STEP 7: FILTERS & SAFETY RULES

Time Filter:
- Days: Mon–Fri | Time: 09:00–17:30
- Block base & DCA outside hours

News Filter:
- Block 30 min before/after news
- Block base only or entire EA

Equity Protection:
- Min Equity: $1500
- Pause if below

Daily Limits:
- Max Daily Loss: $200 | Profit: $500
- Reset at 00:00

Spread Filter:
- Max spread: 30 points
- Check before every order

Volatility Filter (ATR):
- ATR_Period: 14
- Range: 5–50 (optional)

Trade Limits:
- Max Trades Per Day: 5
- Max Open Trades: 10
- DCA inclusion optional

Cooldown Filter:
- After TP: 5 min | After SL: 10 min

Consecutive Loss Filter:
- Max losses: 3
- Pause: 60 min

Symbol Volatility Guard:
- Threshold: 150% change in 30 min

Repeated Signal Blocker:
- Max: 2 repeats in 5 candles
- Pause that direction for 15 min

Gap Filter:
- Min gap: 20 pips
- Block at daily open or weekend

Weekend Lock:
- Friday cutoff: 20:00
- Sunday resume: 22:00

Inactivity Alert:
- Trigger after 6 hours
- Action: Alert / Reset / Disable


🧩 STEP 8: MANUAL CONTROL, UI PANEL & ALERTS

Manual Trading:
- Buy/Sell buttons
- Manual lot: 0.01
- Optional TP/SL

Manual DCA:
- Price + lot size configurable
- Adds to basket TP average

DCA Resume Modes:
- Resume from last, restart, or manual

CHoCH Buttons:
- Manual Buy/Sell CHoCH toggle

UI Panel:
- Editable inputs in real time
- Show TP/SL + trade status on chart

Alerts:
- Entry, TP, SL, manual trade alerts
- Mobile = true | Email = false


📌 ADDITIONAL MODULE: CAPITAL & EXPOSURE DASHBOARD (TO BE MANUALLY ADDED)

The EA must include a real-time monitoring panel that displays detailed capital exposure insights based on the current EA settings and account leverage.

Key features to include:

1. **Minimum Balance Requirement** – Calculates and shows the minimum required balance needed to run the current configuration (based on base order size, number of DCA orders, lot multipliers, margin per order, etc.).

2. **Real-Time Equity Display** – Shows the current equity, margin used, and free margin dynamically.

3. **Leverage-Based Calculation** – Adjusts calculations according to account leverage to reflect actual exposure capacity.

4. **DCA Cycle Capacity** – Calculates how many DCA orders can realistically be placed with available balance, given lot multipliers and spacing.

5. **Liquidation Range Estimation** – Shows an approximate price range where account would be at risk of margin call or liquidation (useful for high leverage users).

6. **Exposure Overview** – Displays total lot size, average entry, floating PnL, and risk-reward ratio dynamically.

7. **Live Update Mechanism** – Panel must auto-refresh as new trades are opened/closed.

8. **Toggle Visibility** – Allow turning the info panel ON/OFF via input or chart button.

This feature will help the user make informed decisions, avoid over-leveraging, and manage risk proactively.

Responded

1
Developer 1
Rating
(12)
Projects
13
23%
Arbitration
7
0% / 57%
Overdue
3
23%
Working
2
Developer 2
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Working
3
Developer 3
Rating
(839)
Projects
1434
72%
Arbitration
117
29% / 47%
Overdue
356
25%
Working
Published: 3 articles
4
Developer 4
Rating
(52)
Projects
83
42%
Arbitration
3
0% / 100%
Overdue
2
2%
Loaded
5
Developer 5
Rating
(4)
Projects
4
25%
Arbitration
2
0% / 0%
Overdue
0
Loaded
6
Developer 6
Rating
(459)
Projects
903
77%
Arbitration
25
16% / 68%
Overdue
99
11%
Working
Published: 1 article, 6 codes
7
Developer 7
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
8
Developer 8
Rating
(12)
Projects
14
0%
Arbitration
1
0% / 0%
Overdue
0
Working
9
Developer 9
Rating
(11)
Projects
16
31%
Arbitration
3
67% / 0%
Overdue
0
Free
10
Developer 10
Rating
(1)
Projects
2
50%
Arbitration
1
0% / 0%
Overdue
0
Working
Similar orders
MQL5 EA that trades based on a single indicator. Trade when there is a fresh crossover and the candle had opened above the grey zone. No re entires on the same trend. Another version where it is done in a header file so it doesn't need the indicator once code has been compiled with comments detailing how to make the version that uses a header file. Details to be discussed in pm
Hi I heard some days ago about TheStrat and would like to ask if someone has built already something with it? Looks like a great opportunity and Inwould like to discuss those strategies. In the end we build an EA with all these strategies together. Havin a multy strategy EA based on the patterns would be great. So we will implement a MLP NN to train the patterns. Checkout the website
I want a bot that reads signals from my Telegram channel and auto-executes those trades on my Pocket Option account. 1. Direction mode hedge_both: open BUY (CALL) and SELL (PUT) at the same time (typically split the amount 50/50 per side). signal_only: open only the direction specified by the signal (CALL or PUT). 2. Respect signal direction When direction_mode = signal_only, a CALL signal opens a CALL; a PUT signal
Título: Criação de EA no MT5 a partir de Indicador Pessoal com Filtros e Meta Diária Descrição do Projeto: Preciso de um Expert Advisor para MetaTrader 5 baseado em um indicador pessoal (arquivo ex5 ou mq5 será fornecido). O funcionamento básico é: O indicador principal gera um evento (compra ou venda). Quando o evento ocorre, o EA deve abrir ordem a mercado seguindo filtros pré-definidos. A saída também será feita
Hello I have an EA with all include files but something is probably wrong with: Frequent ArrayResize() + CopyRates() on every tick Repeated calls to iClose(), iOpen() inside loops Full recalculation of indicators like SMA on every tick No caching of ArraySize() or loop boundaries Linear search in sorted data instead of ArrayBsearch() I would like to share all source code files but I won‘t just send it. First I will
MT4/MT5 Local Trade Copier - Technical Specifications Core Functionality Trade Copying Capabilities MT4 to MT4 : Full bidirectional copying between MetaTrader 4 platforms MT4 to MT5 : Unidirectional copying from MT4 master to MT5 slave accounts Real-time synchronization with latency under 100ms Multiple master/slave configurations supporting 1-to-many and many-to-1 setups Supported Order Types Market Orders
I'm looking to build a high-performance trading bot for MetaTrader 5 (MT5) that focuses on trading Gold (XAU/USD) using both technical indicators and news filtering, with the ability to learn and improve over time using AI/ML. Here’s a quick summary of what I need the bot to do: ✅ Key Requirements: Trade only during London and New York sessions Use technical analysis (e.g. EMA, RSI, MACD, Support/Resistance) Avoid
MALOO-GMZ 50 - 500 USD
This website is about selling gaming electronics and home electronics with a discount of more than 50%. We will be selling quality and orignal electronics perfect looking.And there will be no need to come and collect because we do door to door delivery
I am looking customize trading bot as I use exness exchage so there is MT5 I have tried to create bot myself from CHATGPT but it hasn't work like my expectation so i need expert one who can create customize bot Thanks
Pls I want to add multi time frame filter to my ea with default mt4 indicator pls check the screenshot on requirements on how to make the project. Pls if you have not make a similar project as adding filters to an ea using multi time frame dont apply. If you cant do as on the screenshot then dont even apply

Project information

Budget
50+ USD

Customer

Placed orders5
Arbitrage count0