FJ Universe DCA Hedge
- 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.6
- Updated: 11 October 2025
- Activations: 5
Master bearish markets with the DCA Hedge Bot, an automated trading solution designed to optimize your short-selling strategy on MetaTrader 5 (MT5).
This Expert Advisor (EA) leverages a disciplined Dollar-Cost Averaging (DCA) strategy to execute sell positions and manage trades efficiently in volatile or rising markets. It evaluates conditions for opening a sell position and updating the take-profit level after each new candle opens. If no trades are active, a new sell order is initiated. For existing trades, the EA calculates the "totalInvestmentForBot" divided by "numberOfOrders" to create a DCA GRID for subsequent sell orders above the current price, strategically managing risk by averaging into positions as prices rise. The grid stops creating new orders once the price moves +100% from the initial entry, at which point positions may face liquidation risks if not managed.
Real-time trading signals are sent directly to your Discord server, fully customizable to suit your trading style and preferences.
Features:
- Executes sell positions upon the opening of a new candle, initiating a new order when no trades are active.
- Calculates and updates take-profit levels as a percentage below the average price (via "takeProfitInPercentage"), excluding swap fees for cost-effective trading.
- Implements a DCA GRID strategy by distributing the "totalInvestmentForBot" across a specified "numberOfOrders" for sell orders as prices rise, stopping new orders after a +100% price movement to limit exposure.
- Seamlessly integrates with Discord to deliver trading signals to your private channel, with customizable webhook and nickname settings for easy tracking.
- Optimizes performance across multiple currency pairs and accounts by supporting configurable filling policies (FOK, IOC, or Return) tailored to your broker’s requirements.
- Supports running multiple EAs on the same pair or account by assigning unique Magic Numbers, ensuring no interference between trades.
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.
- 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 goes up to +100% by buying at different price levels.
- Cost Format (costFormat): Choose how you want to set trade sizes: in fiat currency (e.g., USD) or in lots (e.g., 0.01 lots). This gives you flexibility based on your trading style.
- 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).
- -------------------
- 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.
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 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://api.telegram.org" to the list of allowed URLs.
Important Risk Note: The DCA Hedge Bot stops creating new orders after a +100% price increase from the initial entry, which may lead to liquidation if positions are not manually managed or closed. Ensure proper risk management settings to protect your capital in highly bullish markets.
The DCA Hedge Bot is perfect for traders looking to automate short-selling strategies with minimal effort. Highly customizable and compatible with forex, stocks, indices, and commodities, it operates seamlessly in both live and demo environments, making it ideal for hedging in bullish or volatile markets. Whether you’re new to trading or an experienced investor, the DCA Hedge Bot delivers a powerful, user-friendly solution to enhance your trading efficiency and risk management. Start optimizing your short-selling strategy today!

User didn't leave any comment to the rating