Create an EA for AlgoBuilder AI to compound 100 to 1000 in 30 days

Transform a $100 account into $1,000 in 30 days with our expert

Workflow Stage:
Use Case
Save Prompt
Prompt Saved

Overview

This prompt aims to guide developers in creating an Expert Advisor for a specific trading strategy. Programmers and traders seeking automated solutions will benefit from this detailed framework.

Prompt Overview

Purpose: The EA aims to automate a 30-day compounding trading strategy for growing a $100 account to $1,000.

Audience: This EA is designed for traders using AlgoBuilder AI seeking to implement effective trading strategies on Forex and commodities.

Distinctive Feature: It dynamically adjusts trade parameters based on user-defined profit targets and risk management settings.

Outcome: Users can expect a systematic approach to trading that emphasizes risk management and compounding profits effectively.

Quick Specs

Variables to Fill

No inputs required — just copy and use the prompt.

Example Variables Block

No example values needed for this prompt.

The Prompt


Develop an Expert Advisor (EA) compatible with AlgoBuilder AI that implements a 30-day compounding trading strategy. The goal is to grow a $100 account to $1,000 by trading bullish and bearish reversal patterns on 1-hour (H1) or 4-hour (H4) charts, including XAUUSD.
The EA must:
1. Trading Strategy:
– Detect reversal patterns at candle close:
– Bullish Pin Bar
– Bearish Pin Bar
– Morning Star
– Evening Star
– Bullish Engulfing
– Bearish Engulfing
– Allow user-selectable timeframe input: H1 or H4.
– Trade on any Forex pair or commodity, explicitly including XAUUSD.
– Enter market BUY on bullish patterns and SELL on bearish patterns immediately upon pattern confirmation.
– Use a hard Stop Loss (SL) of 30 pips (300 points on XAUUSD) and a Take Profit (TP) of 60 pips (600 points on XAUUSD).
2. 30-Day Compounding Plan (“Blitz Spreadsheet” Model):
– Provide inputs for:
– DailyProfitPercent (default 5%)
– TradingDaysPerMonth (default 21)
– Option to auto-adjust DailyProfitPercent to target exactly $1,000 in 30 days.
– At the start of each trading day, calculate:
– DailyTarget = PreviousDayEquity × DailyProfitPercent.
– Cease new trades once daily closed P/L ≥ DailyTarget until the next day.
– Roll equity forward daily:
– NextDayEquity = PreviousDayEquity + realized daily P/L.
– Support user adjustment of DailyProfitPercent to target ~$1,000 within 30 calendar days.
3. Risk & Money Management:
– Allow configurable RiskPercent per trade (e.g., 1%).
– Calculate lot size dynamically based on current equity, SL pips, and pip value:
– LotSize = (Equity × RiskPercent) ÷ (SL_pips × PipValue).
– Implement trade management with Break-Even adjustment:
– Move SL to entry price after +30 pips profit.
– After break-even, trail SL 20 pips behind price.
– Enforce a daily maximum risk limit via DailyRiskPercent (e.g., 5% of equity) applied to the sum of all open trades’ risk.
4. Integration & Testing:
– Follow AlgoBuilder AI syntax (handle_init, handle_tick, etc.).
– Expose all key parameters as user inputs.
– Ensure pure MQL4/MQL5 code with no external libraries to run in MT4/MT5 Strategy Tester.
– Provide a sample .set file for backtesting XAUUSD on H1.
– Implement an on-chart dashboard displaying:
– Symbol and timeframe
– Current equity and daily P/L vs. DailyTarget
– Last detected pattern and timestamp
– Open trade count, combined P/L, SL/TP levels
– Current lot size and MagicNumber
5. Deliverables:
– Fully commented EA source code (.mq4/.mq5) compatible with AlgoBuilder AI.
– README explaining:
– The strategy
– Compounding plan
– Input configuration to achieve $100 to $1,000 in 30 days
– Instructions for running in AlgoBuilder and MT4/MT5 testers.
– Sample backtest report/screenshots on XAUUSD H1 showcasing daily 5% (or adjusted) profit targets and dashboard output.
– Robust error handling to prevent duplicate orders and strictly follow the Blitz Spreadsheet compounding logic.
Ensure all logic, calculations, and implementations align precisely with the specifications above for successful and optimized strategy automation within AlgoBuilder AI and MT4/MT5 environments.

Screenshot Examples

How to Use This Prompt

  1. Copy the prompt provided above.
  2. Paste it into your coding environment.
  3. Adjust parameters as needed for your trading preferences.
  4. Implement the trading strategy in MQL4/MQL5.
  5. Test the EA using MT4/MT5 Strategy Tester.
  6. Review results and refine the EA as necessary.

Tips for Best Results

  • Pattern Detection: Implement logic to identify bullish and bearish reversal patterns at candle close for accurate trade entries.
  • Compounding Strategy: Set up a daily profit target based on previous equity to achieve $1,000 in 30 days, adjusting as needed.
  • Risk Management: Dynamically calculate lot size and enforce a maximum risk limit to safeguard equity while trading.
  • Testing & Integration: Ensure compatibility with AlgoBuilder AI and provide comprehensive documentation for setup and backtesting.

FAQ

  • What is the main goal of the 30-day compounding strategy?
    To grow a $100 account to $1,000 through trading reversal patterns.
  • Which trading patterns does the EA detect?
    Bullish and bearish pin bars, morning star, evening star, and engulfing patterns.
  • What is the default daily profit percentage?
    The default daily profit percentage is set at 5%.
  • How does the EA manage risk per trade?
    It allows configurable risk percentage and dynamically calculates lot size based on equity.

Compliance and Best Practices

  • Best Practice: Review AI output for accuracy and relevance before use.
  • Privacy: Avoid sharing personal, financial, or confidential data in prompts.
  • Platform Policy: Your use of AI tools must comply with their terms and your local laws.

Revision History

  • Version 1.0 (February 2026): Initial release.

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Used Prompts

Related articles

AI Powered Web Development Portfolio with React PHP Bootstrap and DBMS Integration

Learn to build a dynamic portfolio that showcases full-stack development skills.

AI Wallet Finder Program with Authentication and Security

Ensure secure and user-friendly wallet tracking with reliable authentication features.

Determine Movie Ticket Cost by Age Conditional Logic Guide

Discover the perfect movie ticket price based on age with our easy-to-use

Create a 3D Robot Slum Simulation with Three.js for Developers

Embark on a neon-lit journey through Sector Zero's dystopian robot slum in