DCA Parallel EA
- Experts
- 버전: 1.36
- 활성화: 5
DCA PARALLEL EA - Two-Way Averaging Grid with Buy/Sell Control Panel
OVERVIEW
DCA Parallel EA runs a Buy basket and a Sell basket at the same time on one chart. Each basket opens a first order, adds more orders (DCA) at a fixed grid step when price moves against it, and closes the whole basket when price reaches a take profit measured from the basket break-even price. The EA has no indicators and no entry signals: it is a pure grid/averaging system controlled by distances in points.
A built-in panel lets you switch Buy and Sell on or off separately, so you can trade the way you want (both directions, Buy only or Sell only).
IMPORTANT RISK WARNING
This EA uses averaging (DCA) with increasing lot sizes and does NOT use a stop loss. A strong, one-directional move can create a large floating loss and use a large part of your margin. Start with a small lot on a demo account, keep enough free margin, and never risk money you cannot afford to lose. Past results do not guarantee future results.
HOW IT WORKS
1. When Buy is ON and there is no Buy position, the EA opens the first Buy. The same applies to Sell.
2. DCA: a new Buy is opened when Ask falls one grid step below the lowest open Buy. A new Sell is opened when Bid rises one grid step above the highest open Sell.
3. Lot size of each DCA order = start lot x (lot multiplier ^ number of open orders of that side), rounded to the symbol's volume step.
4. Break-even (BEP) = volume-weighted average open price of the side.
5. Take profit: Buy basket closes at BEP + TP points, Sell basket closes at BEP - TP points.
6. When "Real TP" is on, the EA sets a real take profit on every position of the side (updated after each new DCA order). The EA's own take-profit check stays active as a backup.
7. After a basket is closed, a new first order is opened immediately while that side is ON.
8. Max DCA orders limits the DCA orders after the first one. Set it to 0 for unlimited DCA (higher risk).
PANEL
- BUY ON/OFF and SELL ON/OFF buttons. Switching a side OFF closes all positions of that side after a confirmation box.
- Lot, grid step, take profit and Balance/Lot values can be edited on the panel when both sides are OFF, then saved with APPLY.
- AUTO LOT button: lot grows with account balance.
- Buy/Sell switches and panel values are kept when you change timeframe or reload the EA.
INPUT PARAMETERS
Order settings
- Lot Size (0.01): start lot when Auto Lot is off.
- Lot Multiplier (1.5): DCA lot multiplier for non-gold symbols.
- Max DCA (5): maximum DCA orders per side after the first order. 0 = unlimited.
- Grid Step Buy / Sell (240 points): distance between DCA orders.
- Take Profit Buy / Sell (120 points): distance from the basket break-even to take profit.
- Real TP (true): set a real take profit on positions.
Gold settings (auto-detected)
- Gold Ratio (20.0): multiplier applied to grid step and take profit on gold.
- Gold Lot Multiplier (1.2): DCA lot multiplier used on gold.
Auto lot by balance
- Auto Lot (false): enable lot by balance.
- Balance per Lot Step (3000): every X of balance adds one base lot.
- Base Lot (0.01): lot added per balance step. Lot = floor(balance / X) x Base Lot, never below the symbol's minimum lot.
Other
- Magic Buy (111111) / Magic Sell (222222): must be different.
- Slippage (30 points), Buy/Sell label colors.
GOLD NOTES (XAUUSD / GOLD)
- The EA detects gold automatically when the chart symbol name contains "XAU" or "GOLD" (for example XAUUSD, XAUUSDm, GOLD).
- On gold, grid step and take profit are multiplied by the Gold Ratio, and the Gold Lot Multiplier is used instead of the normal one. With the defaults: step 240 x 20 = 4800 points and take profit 120 x 20 = 2400 points, lot multiplier 1.2.
- The panel shows and edits the base values (240 and 120). The ratio is applied internally; the title on the chart shows the active gold mode.
- Points depend on how many decimal digits your broker uses for gold. With 2 digits (1 point = 0.01) the defaults equal a 48.00 step and 24.00 take profit in price. With 3 digits (1 point = 0.001) they equal 4.80 and 2.40. Please adjust the Gold Ratio to match your broker.
- Gold is volatile and spreads can widen during news and rollover. Use a conservative lot and test on a demo account first.
- The EA is designed and tuned for gold. It can run on other symbols using the base values, but those values are not optimized for them.
REQUIREMENTS AND RECOMMENDATIONS
- Hedging account is required for running Buy and Sell together. On a netting account only one direction (Buy or Sell) can run at a time.
- A VPS is recommended for continuous operation.
- The EA does not use external DLLs and works on any timeframe because it does not use indicators.
- Check that your broker allows Expert Advisors and has enough free margin for the DCA levels you use.
