FJ Universe DCA DwxZero
- Experts
-
Frantisek Juris
Hello!
Thank you for visiting my profile - I truly appreciate it!
I'm a full-time traveler who previously worked as an automation specialist in the field of software testing and development. I’ve worked with companies like Vodafone, NCR, and Global Payments in Prague, Czech Republic. - Version: 1.0
- Activations: 5
FJU DCA DWX ZERO BOT | Darwinex Zero Ready MetaTrader 5 Trading Robot
An automated trading solution designed to make your Dollar-Cost Averaging (DCA) strategy work hand in hand with Darwinex Zero on MetaTrader 5 (MT5).
This Expert Advisor (EA) is the Darwinex Zero aware evolution of the original FJ Universe DCA Investor. It employs the same disciplined DCA strategy: it evaluates conditions for opening a buy position and updating the take-profit level after each new candle opens. If no trades are active, a new trade is initiated. For existing trades, the EA calculates the "totalInvestmentForBot" divided by "numberOfOrders" to create a DCA GRID for subsequent orders below the current price, ensuring strategic risk management.
On top of that, the EA understands the Darwinex Zero Risk Engine. It models the monthly Value at Risk (VaR) of your ladder, sizes every order automatically toward the official 6.5 percent VaR target, compensates the deleverage of later grid orders, respects the D-Leverage limits, and protects your DarwinIA rating with a monthly drawdown guard. The goal is simple: your DARWIN should mirror your account instead of being rescaled away from it.
All trading signals are sent directly to a Discord server or Telegram for real-time monitoring and can be customized to suit your preferences. A professional dashboard on the chart shows estimated D-Leverage, modeled VaR, margin runway, DarwinIA month statistics and the status of every protection module.
Features:
- Executes buy positions based on a new candle opening, with no active trades triggering a new order.
- Calculates and updates take-profit levels as a percentage above the average price (input "takeProfitInPercentage"), excluding swap fees.
- Implements a DCA LONG GRID strategy by dividing the "totalInvestmentForBot" across a specified "numberOfOrders" for orders placed down to a 100% price drop.
- AUTO VaR sizing for Darwinex Zero: scales every lot so the modeled monthly VaR of the planned ladder matches the target, keeping the DARWIN VaR ratio near 1.0.
- Progressive anti-deleverage boost: each next grid order is slightly larger to compensate the Risk Engine shrinking later orders, so the DARWIN average price stays aligned with yours.
- D-Leverage clamp with EURUSD volatility reference: the EA stops increasing exposure before the official 9.75 hard cap, so the Risk Engine never partially closes your DARWIN trades.
- Free Margin Guard: blocks any order that would eat into your protected equity reserve and forecasts how many grid orders still fit into free margin.
- Margin Manager: banks profitable legs when used margin crosses a threshold. Losing trades are never touched.
- DarwinIA protection: monthly drawdown guard pauses new grid orders when the month drawdown crosses your limit, plus an activity reminder so you never miss the minimum one trade per month.
- Account Manager: equity take profit and stop loss for the whole account, scheduled closes of profitable trades daily, every Friday or on the last trading day of the month, and an age based close for profitable trades older than a chosen number of days.
- Integrates with Discord and Telegram to send trading signals directly to your private channel, with customizable webhook and nickname settings.
- Supports optimization for multiple currency pairs and accounts by allowing configuration of filling policies (FOK, IOC, or Return) to match broker requirements.
- Enables running multiple EAs on the same pair or account by assigning unique Magic Numbers to prevent trade interference.
Configuration Settings:
- Total Investment (totalInvestmentForBot): The total amount of money you allocate for the EA to trade on a specific currency pair and timeframe. Think of it as the budget the EA uses to open trades.
- Cost Format (costFormat): Choose how you want to set trade sizes: in fiat currency (e.g., USD), in lots (e.g., 0.01 lots), or as a percentage of balance or equity. This gives you flexibility based on your trading style.
- Number of Orders (numberOfOrders): The number of smaller trades the EA splits your Total Investment into. These trades form a Dollar Cost Averaging (DCA) grid, designed to handle price drops up to 100% by buying at different price levels.
- Take Profit Percentage (takeProfitInPercentage): The profit target, expressed as a percentage above the average price of your open trades. Note: This does not account for swap fees (overnight holding costs).
- -------------------
- Sizing Mode (dzeroSizingMode): The most important Darwinex Zero input. AUTO_VAR_TARGET lets the EA size all lots automatically so the modeled VaR of your ladder matches the target and your DARWIN mirrors your account. MANUAL_RATIO gives you full manual control through the Leverage Order Ratio.
- Target VaR Percent (dzeroTargetVarPct): The monthly VaR the AUTO mode aims for. The Darwinex Zero band is 3.25 to 6.5 percent. Leave at 6.5 unless your DARWIN page suggests aiming lower.
- VaR Fill Factor (dzeroVarFillFactor): How full the AUTO model assumes your ladder is on average (0.5 means half full). This is your tuning knob: if your live DARWIN VaR ratio stabilizes below 1.0 raise it slightly, above 1.0 lower it slightly.
- Auto Factor Min / Max (dzeroAutoFactorMin, dzeroAutoFactorMax): Safety floor and ceiling for the automatic sizing factor, so an unusual market reading can never produce absurd lot sizes.
- Use Darwinex Leverage (useDarwinexLeverage): When set to "True," each next grid order is progressively slightly larger to cancel the Risk Engine shrinking later orders. Keep it on for Darwinex Zero accounts.
- Leverage Order Ratio (leverageOrderRatio): The base lot multiplier in MANUAL_RATIO mode. 1.0 is neutral, 2.0 doubles, 0.5 halves. This value is sovereign and is never clamped by the EA.
- Boost Step (dzeroBoostStep): The extra progressive boost added per already open order. The default 0.01 means order number 100 is opened twice as large as order number 1.
- Max Boost (dzeroMaxBoost): The cap of the progressive part only. The Risk Engine tolerates VaR changes up to a factor of about 2, so larger boosts would be wasted.
- Max D-Leverage (maxDLeverage): The EA stops increasing exposure when the estimated D-Leverage would cross this value. Default 9.0 keeps a safety buffer under the official 9.75 hard cap for positions held longer than 60 minutes.
- VaR Jump Warn Percent (dzeroVarJumpWarnPct): Sends a warning before any single order would grow your total exposure by more than this percentage, because large VaR jumps deleverage the whole ladder on the DARWIN side.
- Reference Symbol (dzeroReferenceSymbol): The volatility reference for the D-Leverage estimate. Darwinex Zero standardizes risk in EURUSD terms, so leave EURUSD unless your broker uses a suffix like EURUSD.x.
- -------------------
- Margin Guard Enabled (marginGuard_Enabled): When set to "True," the EA calculates the exact margin of every order before sending it and blocks any order that would eat into your protected reserve. On Darwinex Zero a margin stop ends your DARWIN, so this is your seatbelt.
- Margin Guard Reserve Percent (marginGuard_ReservePct): The percentage of your equity that must always stay free. The dashboard margin runway (how many orders still fit) is calculated against this reserve.
- -------------------
- Margin Manager Enabled (MarginManager_Enabled): When set to "True" and used margin crosses the threshold, the EA closes profitable grid legs to bank small wins and free margin. Losing trades are never closed by this module.
- Margin Manager Threshold Percent (MarginManager_ThresholdPerc): The used margin percentage that triggers the Margin Manager. Set 0 to disable.
- Margin Manager Min Profit Percent (MarginManager_MinProfitPerc): The minimum profit, as a percentage of position value, a leg must have before the Margin Manager may close it.
- -------------------
- Monthly Drawdown Guard (DIA_UseMonthlyDDGuard): When set to "True" and the current month drawdown exceeds the limit, the EA pauses new grid orders until the next month. Existing positions are untouched. Drawdown and the six month return drive most of the DarwinIA rating, and this guard protects both.
- Monthly Drawdown Limit Percent (DIA_MonthlyDDLimitPct): The monthly maximum drawdown percentage that triggers the pause.
- Activity Reminder (DIA_ActivityReminder): Sends a Discord reminder after 20 days without a trade, because DarwinIA requires at least one trade in the current or past month to participate in allocations.
- -------------------
- Use Equity Targets (AccMgr_UseEquityTargets): Master switch for equity exits. These are the only actions that close the whole account; everything else in this EA touches only its own trades.
- Equity Take Profit (AccMgr_EquityTakeProfit): When account equity rises to this value, all trades on the account are closed. Set 0 to disable.
- Equity Stop Loss (AccMgr_EquityStopLoss): When account equity falls to this value, all trades on the account are closed. This is the account saving floor. Set 0 to disable.
- Close Other Charts (AccMgr_CloseOtherCharts): After an equity exit, also close all other charts to stop other EAs from opening new trades.
- Remove EA After Exit (AccMgr_RemoveEAAfterExit): After an equity exit, remove this EA from the chart.
- Close Last Day Of Month (AccMgr_CloseLastDayOfMonth): Closes this EA's profitable trades on the last trading day of the month at the Month Close Time. If the month ends on a weekend, it fires on Friday.
- Month Close Time (AccMgr_MonthCloseTime): Server time in HH:MM format for the month end close.
- Close Every Friday (AccMgr_CloseEveryFriday): Closes this EA's profitable trades every Friday at the Friday Close Time, so you can go into the weekend with banked profits. Re-entry is allowed.
- Friday Close Time (AccMgr_FridayCloseTime): Server time in HH:MM format for the Friday close. Choose a time inside your symbol's trading session.
- Close Every Day (AccMgr_CloseEveryDay): Closes this EA's profitable trades every day at the Daily Close Time.
- Daily Close Time (AccMgr_DailyCloseTime): Server time in HH:MM format for the daily close.
- Close Profitable After Days (AccMgr_CloseProfitableAfterDays): Closes each profitable trade of this EA individually once it is older than this number of days. Set 0 to never close by age.
- Min Profit Percent (AccMgr_MinProfitPerc): Defines what "profitable" means for all scheduled closes: profit must be at least this percentage of the position value, which covers commissions and background fees. Important: all scheduled closes act only on profitable trades of this EA, identified by Magic Number, and only while the market is open.
- -------------------
- Magic Number (magicNumber): A unique ID assigned to the EA to track its trades. This prevents the EA from interfering with other EAs or your manual trades, keeping everything organized.
- Use Filling Policy (useFillingPolicy): When set to "True," the EA automatically picks the best order execution method (Fill or Kill, Immediate or Cancel, or Return) based on your broker's requirements, ensuring smooth trade execution.
- Last DCA Cycle (lastCycleOfDCA): Choose whether the EA should stop trading after completing a full DCA cycle (i.e., after closing all positions). Useful for controlling when the EA pauses.
- -------------------
- Brand Link Name (brandLinkName): Add a custom name for a link included in your trade reports, making it easy to personalize or brand your reports.
- Brand Link URL (brandLinkURL): Provide a URL to pair with the Brand Link Name in your trade reports, such as a link to your website or profile.
- Discord Nickname (discordNickname): The name displayed in Discord reports. You can use <@id> tags to mention specific users or roles in your Discord channel.
- Discord Webhook Logs (discordWebhookLogs): The URL for a Discord webhook to send detailed trade logs to your custom Discord channel, keeping you updated on EA activity.
- Discord Webhook Results (discordWebhookResults): The URL for a Discord webhook to send profit and loss (PNL) results to your custom Discord channel, so you can track performance.
- Telegram Nickname (telegramNickname): The name shown in Telegram reports. Supports @id tags to tag specific users or groups.
- Telegram Bot Token (telegramBotToken): The API token from Telegram's BotFather, used to connect your EA to a Telegram bot for sending reports.
- Telegram Chat ID (telegramChatID): The ID of the Telegram chat or group where your bot will send PNL results, keeping you informed on the go.
How to use the EA on Darwinex Zero (recommended workflow):
1. Attach the EA to one chart of a Darwinex Zero supported symbol, timeframe H1 is the tested default.
2. Set your Total Investment and Number of Orders, then leave Sizing Mode on AUTO_VAR_TARGET.
3. Check the dashboard: Margin Runway should comfortably cover your remaining planned orders, and Est D-Leverage should stay well under the clamp.
4. During the Darwinex Zero calibration phase trade exactly like you plan to trade long term, because those decisions shape your DARWIN's initial risk multiplier.
5. Once your DARWIN is live, compare its VaR ratio with 1.0 monthly and fine tune the VaR Fill Factor in small steps if needed.
Setup for Discord Integration:
To enable Discord signal notifications, configure the WebRequest settings in MT5:
1. Go to Tools > Options > Expert Advisors tab.
2. Check "Allow WebRequest for listed URL."
3. Add "https://discord.com" & "https://discordapp.com" to the list of allowed URLs.
Setup for Telegram Integration:
To enable Telegram signal notifications, configure the WebRequest settings in MT5:
1. Go to Tools > Options > Expert Advisors tab.
2. Check "Allow WebRequest for listed URL."
3. Add "https://api.telegram.org" to the list of allowed URLs.
Honest words about risk: DCA strategies hold drawdown during falling markets by design, and a grid sized too large for the account can reach a margin stop. All D-Leverage and VaR values shown by the EA are estimates based on the public Darwinex Zero documentation model, not official platform calculations. Trading leveraged products involves substantial risk of loss, and past performance does not guarantee future results. Please trade only with risk capital you can afford to lose.
This trading robot is ideal for traders building a DARWIN on Darwinex Zero who want their DCA strategy represented faithfully, protected from deleverage, and managed with professional risk controls. It is highly customizable, compatible with any Darwinex Zero supported symbol, runs equally well on regular MT5 accounts in MANUAL_RATIO mode, and operates seamlessly in both live and demo environments. Whether you are a beginner or an experienced trader, the DCA DwxZero Bot provides a robust and user-friendly solution to enhance your trading efficiency, your risk management, and your DarwinIA rating.
