Quantum Queen EA - Mt5 Version
On Sale
$10.00
$10.00
How Quantum Queen Works:
1. Strategy & Trade Execution Logic
- Automated Buying: The EA runs its core strategy via the RunQuantumQueenLogic() function on every tick.
- Position Check: It first checks if any open positions exist for its specific Magic Number (Magic_Quantum = 10004).
- Execution: If no open positions are found, it triggers a safe market BUY order using a standardized lot size (FixedLot_Standard = 0.01), complete with predefined Stop Loss (Quantum_SL_Points = 500) and Take Profit (Quantum_TP_Points = 500) levels.
- Broker Safety Filter: Before placing the trade, an internal wrapper (ExecuteSafeTrade) checks the broker's minimum stop levels to prevent execution errors.
2. Global Risk & Equity Governor (Circuit Breaker)
- Drawdown Protection: The EA constantly monitors your account's health via CheckGlobalEquityProtection().
- Emergency Close: It compares your current account equity against your initial starting balance. If your total equity drawdown breaches your safety threshold (InpMaxEquityDrawdown = 15.0%), the EA will automatically panic-close all active trades for that symbol and halt further risk.
3. Visual Dashboard & UI Rendering
- On-Screen Display: If ShowDashboard is enabled, the EA constructs a custom visual panel directly on your chart using graphical objects (OBJ_RECTANGLE_LABEL, OBJ_LABEL, and OBJ_BITMAP_LABEL).
- Embedded Branding: It renders your custom Quantum Queen logo image directly onto the panel using an embedded resource (::QuantumQueenLogo.bmp) scaled up for high visibility.
- Real-Time Metrics: It loops through your trading history and open positions to dynamically calculate and display real-time statistics—including win/loss counts, open Profit/Loss (PnL), and net closed PnL.
Here is the complete step-by-step guide on how to install your Expert Advisor (EA) and the embedded logo image into MetaTrader 5:
Step 1: Place Your Files in the Correct Folder
- Open MetaTrader 5.
- In the top menu, click on File $\rightarrow$ Open Data Folder.
- In the folder window that pops up, navigate to:
- MQL5 $\rightarrow$ Experts
- Place your main EA code file (QuantumQueenEA.mq5) inside this Experts folder.
- Place your image file converted to .bmp format (QuantumQueenLogo.bmp) directly inside this same folder (MQL5\Experts\) so the #resource directive can pack it correctly during compilation.
Step 2: Compile the EA
- Go back to MetaTrader 5 and press F4 on your keyboard to open the MetaEditor development environment.
- In the Navigator window on the left, locate and open your QuantumQueenEA.mq5 file (it will be inside the Experts folder).
- Click the Compile button in the top toolbar (or press F7).
- Check the "Errors/Warnings" box at the bottom to ensure it compiles successfully with 0 errors. This automatically bundles your QuantumQueenLogo.bmp image directly into the compiled .ex5 file.
Step 3: Attach the EA to a Chart
- Return to the main MetaTrader 5 trading terminal window.
- Open the Navigator panel on the left side (press Ctrl + N if you don't see it).
- Look under the Expert Advisors tree, find your EA, and drag-and-drop QuantumQueenEA onto any currency pair chart (e.g., EURUSD) with your preferred timeframe.
- A settings window will pop up:
- Go to the Common tab and make sure "Allow Algorithmic Trading" is checked.
- Adjust any inputs (like lot size or drawdown limits) if needed.
- Click OK.
Step 4: Verify the Dashboard and Image
- Ensure the Algo Trading button in the top main toolbar of MT5 is turned ON (it should have a green play icon).
- You will now see your customized Quantum Queen dashboard panel rendered directly on the chart, complete with your enlarged, high-visibility logo image and live trading metrics!