Milad
Prompt
1. Your Role: You are a Senior Quantitative Researcher who has spent your career inside proprietary trading firms (Prop Firms), systematic hedge funds, and major institutional trading desks. Your core expertise lies in foreign exchange (FX) and precious metals, particularly Gold (XAU). Your mastery spans market microstructure, order flow, dealer hedging behavior, volatility term structure, cross-asset lead-lag relationships, and the statistical validation of trading edges. You have personally designed, deployed, and killed dozens of live systematic strategies, and you clearly understand the difference between a genuine edge rooted in a persistent structural feature of the market versus an artifact that merely looks good in a backtest. You are not a retail trading educator, nor do you regurgitate superficial concepts published on trading blogs, YouTube tutorials, or retail forums purely for show. You are fundamentally different from retail gurus and unprofitable retail traders. 2. Who You Are Advising: My name is Milad, and I am a professional algorithmic trading developer with over 6 years of experience. I am fluent in MQL5 as well as other programming languages including C++, Python, Java, C#, web technologies such as PHP and ASP, and several others. I can translate virtually any trading idea, strategy concept, or technical specification into a fully operational Expert Advisor (EA) for MetaTrader 5. I currently own, operate, and manage the complete infrastructure required for serious, professional execution: enterprise-grade VPS environments, dedicated trading servers, reputable brokerage accounts, tick-level historical data, and a disciplined methodology for backtesting and forward-testing. Treat me as a peer and a technical equal. Assume full technical fluency. Do not simplify, do not explain basic concepts, and do not pad your response with beginner-level context or introductions. We will be operating at a very high technical level; please strictly avoid trivial, low-level concepts that lack a true structural edge and only circulate on social media among novices or average retail traders. I have also architected and built a comprehensive monitoring platform and control panel for all my bots, where every detail of my accounts, trades, bots, and system health is tracked in real time and overseen by an automated watchdog. My operations are run at a highly professional, institutional standard. Currently, I have several bots in testing with an average win rate above 70%. One of them, running on EURUSD over 7 trading months with more than 100 trades, has generated 130% profit with a drawdown under 10%. Several other bots exhibit comparable performance and have proven themselves across varying market regimes. A number of my XAU bots have also delivered remarkable performance over the past year across diverse market conditions. 3. Your Mission and Task: I want you to design one complete, highly professional, precise, and high-performing trading strategy for Forex pairs or Gold (XAUUSD). It does not matter which market you choose (Gold or FX pairs), provided that it possesses a genuine, rock-solid edge in the market and stays completely clear of all the played-out, generic retail strategies that saturate public media. I reiterate that we are operating at an elite level—if you do not have sufficient depth of knowledge or capability for this task, state so upfront so we do not waste each other's time. What I am explicitly NOT asking for: • I do not want code—no MQL5, no pseudocode as a substitute for deep thinking, and no EA files. I will write the code myself. • I do not want a list of five shallow, half-baked ideas. I want one single strategy, thoroughly and professionally developed, specified down to every detail, and backed by deep, rigorous, and defensible reasoning. What I am asking for: The complete intellectual and logical architecture of a strategy including its core logic, structural rationale, exact rules, risk model, and validation plan at a level of precision sufficient for me to implement it without having to invent or guess any missing piece. The core concept must be exceptionally intelligent, reflecting the caliber of a top-tier quantitative engineer with extensive real-world experience. Strategies with a genuine professional edge are not the ones taught on YouTube or social media by thousands of influencers and traded by millions of retail participants worldwide. Real, institutional grade strategies with a true edge are utilized by elite individuals, institutions, and quantitative firms which is precisely why they work. That is the caliber of strategy I expect from you. Please do not act like a clueless amateur. Important Note: If necessary (and I repeat, only if genuinely necessary), this strategy may incorporate external data feeds. If your strategy requires acquiring external data—from institutions, specialized providers, commercial market-data vendors, or real volume feeds—even if it involves paid subscriptions, I am fully capable of sourcing and integrating it. I have no issues or constraints in this regard. Therefore, if needed, feel free to design a strategy that leverages external data; and if off-chart data is unnecessary, that is completely fine as well. 4.HARD CONSTRAINTS: • Trading Instruments: FX major pairs and/or Gold (XAUUSD). Explicitly specify which exact symbol or symbols the strategy is designed for and explain why that specific instrument was chosen. • Timeframes: Must operate within the M1 to H4 timeframe range (inclusive). Utilizing multi-timeframe logic is completely acceptable. • Trade Frequency: Completely irrelevant. Whether 1 trade per day or 100 trades per day, both are acceptable. Under no circumstances should you optimize the strategy for trade count. • Performance Target: A solid, robust win rate combined with a strong positive expectancy. Explicitly state what win rate and risk-to-reward profile the strategy is designed to produce and why this combination is internally consistent. The strategy may feature a lower win rate, provided its favorable risk-to-reward ratio ultimately delivers excellent returns. • Robustness: It is critical that the strategy is designed to endure across many years and diverse market regimes—rather than being profitable only during one favorable season and flat or losing in other periods. Trend-following strategies typically suffer from this flaw; and as stated previously, it must not be a generic, played-out strategy currently being used and traded by thousands or millions of participants. • Implementability: Must be implementable in MQL5 using data and core execution primitives available to a retail MT5 account: tick data, OHLCV, standard or custom indicators, symbol/session/time information, spread, swap, concurrent multi-symbol access, and anything else you deem necessary. If the strategy requires any external data source (economic calendar, correlated instrument feed, COT data, volume data, or off-broker data, etc.), state this explicitly and explain exactly what is needed and how to obtain it. If the strategy also requires leveraging another language such as Python, let me know so I can integrate it wherever you specify using a dual-language architecture is completely fine. 5. Mandate for Originality, Professionalism, and Exclusivity — Read This Section Twice: I have already researched, coded, and backtested the vast majority of conventional retail strategies. They deliver only seasonal profitability and completely fail across multi-year datasets. I have zero interest in trading based on the same logic that millions of other retail traders use—those mechanics have been arbitraged away, and standing on the crowded, saturated side of a well-known signal is a structural disadvantage. While I am not an institution, fund, or corporation, after all these years of trading experience and having built the trading infrastructure and automated bots that I operate, my work is fundamentally different from a naive retail trader trying to make money from the market using generic retail strategies. I expect you to take this into account and not act like a clueless amateur. I want a strategy that only a tiny fraction of traders in the world use (typically, genuine edges that produce real returns are known and utilized by 4% or fewer of market participants) or are even aware of. I am looking for the kind of trading edge that circulates inside institutional desks, obscure academic literature, or the private research of top-tier systematic traders—not the type that appears on the first page of Google search results or is taught by strategy gurus on social media and local trading academies to thousands or millions of people. 6. Required Deliverable Structure: Present your response strictly in the following sections and in this exact order: • Section 1 — Strategy Identity: Name of the strategy, core thesis in one paragraph, target instrument(s), and target timeframe(s). • Section 2 — The Structural Edge: Your reasoning as to why this trading strategy is superior and effective, and the structural reasons behind its edge compared to strategies taught by social media gurus or trading courses and used by millions of retail traders who ultimately fail. • Section 3 — Market Regime Context: Under what conditions does this strategy perform best? Under what conditions does its performance degrade? • Section 4 — Complete Entry Logic: Every single condition required to trigger an entry, stated with complete mechanical precision—with zero ambiguity and without vague phrases such as "when momentum is strong." Define every threshold, every lookback window, every calculation formula, and the exact sequence in which conditions are evaluated. If the long and short logic are asymmetric, clearly specify the differences. • Section 5 — Complete Exit Logic: Take Profit (if applicable), Stop Loss (if applicable), trailing stop logic (if used), time-based exits, and scenario invalidation conditions. Explain the rationale behind each exit mechanism and how it connects to the underlying structural edge. • Section 6 — Filters and Exclusions: Trading sessions, days of the week, news events, spread limits, volatility floors and ceilings, correlation blocks, and any conditions under which the strategy must not trade. Justify every filter with a precise reason. If the strategy utilizes a multi-language architecture or relies on external data, explain the exact usage format, conditions, and complete technical details of that data so that I can implement it down to the last detail. • Section 7 — Risk and Position Sizing Model: Per-trade risk, position sizing formula, maximum concurrent exposure, correlation-aware limits, portfolio-level drawdown circuit breakers, and system behavior following a losing streak. • Section 8 — Parameter Specification: A table covering all parameters: name, purpose, suggested default value, and the range over which it should be tested. Explicitly specify which parameters are structural (must not be optimized) and which are tunable. Flag any parameter that carries a high risk of overfitting. • Section 9 — Expected Performance Profile: Realistic estimates for: Win Rate, Average R Multiple, Profit Factor, expected trades per month, expected maximum drawdown, and the shape of the equity curve. Be honest rather than promotional. If the realistic win rate is 45% with a 2.5R average winner, state that explicitly. Do not fabricate exaggerated or misleading numbers. 7. Standards of Engagement and Writing: • No hedging, no filler, no pleasantries, and no sugarcoating. Write with the directness of a peer, not the caution of a liability-averse advisor. • No boilerplate disclaimers about trading risk. I am a professional and I am fully aware of the risks. • Quantify everything you can. Vague, qualitative statements are unusable in an Expert Advisor. • Wherever you are uncertain, state so explicitly and specify what would resolve that uncertainty. Fabricating false confidence is far worse than admitting what you do not know. • Refrain from complimenting the prompt or opening with pleasantries. Dive straight into the substance. • Depth over breadth. A single strategy dissected in exhaustive detail is infinitely more valuable to me than five strategies sketched superficially. • Utilize your full intellectual capacity. • Do not be lazy; if you intend to cut corners or fail to execute this accurately and strictly according to my instructions above, do not waste my time and do not disappoint me. • Be completely direct with me and do not hold back. • Prove yourself and your capabilities to me, and do not give me any reason to think you are a fool. • Demonstrate your strength, intelligence, ingenuity, creativity, and domain mastery. • Prove that I did not make a mistake in choosing you for this task. • Prove that you have grasped every single detail of my requirements and all instructions in this prompt with absolute precision. • I am waiting for an extraordinary output from you. • Before writing, take sufficient time to think deeply and apply your full analytical power. • Unleash your maximum analytical capability and deliver a masterpiece of algorithmic trading logic.