Files
mql5/Scripts/MyScripts/Workspace_Loader_Pro.md
T
2025-12-04 10:15:17 +01:00

57 lines
3.0 KiB
Markdown

# Workspace Loader Pro (Script)
## 1. Summary (Introduction)
The `Workspace_Loader_Pro` is a powerful utility script designed to automate the setup of complex trading workspaces. Instead of manually opening charts, setting timeframes, and applying templates one by one, this script allows you to define a "Layout Profile" and apply it to multiple symbols instantly.
It is the ultimate time-saver for traders who monitor multiple assets using a standardized set of analysis tools (e.g., a "Trend" chart on H1 and a "Scalp" chart on M5 for every pair).
## 2. Features and Logic
* **Multi-Symbol Support:** Accepts a comma-separated list of symbols (e.g., "EURUSD, GBPUSD, USDJPY").
* **Flexible Configuration:** Provides 8 configuration slots. Each slot defines a specific **Timeframe** and **Template** to be applied.
* **Smart Execution:** The script iterates through the list of symbols and, for each symbol, opens all the charts defined in the active configuration slots.
* **Preset Capability:** The entire configuration (symbols + layout) can be saved as a standard `.set` file, allowing you to switch between different trading modes (e.g., "Morning Scalping", "Weekly Analysis") in seconds.
## 3. Parameters
* **`InpSymbols`:** A comma-separated list of the symbols you want to load.
* Example: `EURUSD, GBPUSD, XAUUSD, US500`
* *Note: The script automatically handles spaces and checks if the symbols exist in your Market Watch.*
* **Chart Configuration 1 - 8:**
* **`InpPeriod_X`:** The timeframe for the chart (e.g., `PERIOD_M15`, `PERIOD_H1`).
* **`InpTemplate_X`:** The exact name of the template file (`.tpl`) to apply.
* If the template is in the root `Templates` folder, just use the name (e.g., `Default.tpl`).
* If it is in a subfolder, include the path (e.g., `MyTemplates\trend.ha.base.tpl`).
* **Leave this field empty to disable the slot.**
## 4. Usage and Workflow
The power of this script lies in using **Presets (.set files)**.
### Creating a "Morning Scalp" Workspace
1. Open the script properties.
2. Set `InpSymbols` to your favorite pairs: `EURUSD, GBPUSD, USDJPY`.
3. **Config 1:** Set Period to `M15` and Template to `MyTemplates\trend.ha.base.tpl` (for trend context).
4. **Config 2:** Set Period to `M5` and Template to `MyTemplates\scalp.std.vwap.tln_sum.full.tpl` (for entry).
5. Click **"Save"** and name the file `workspace_scalp.set`.
### Creating a "Weekly Overview" Workspace
1. Open the script properties.
2. Set `InpSymbols` to a broader list: `EURUSD, Gold, US500, Bitcoin`.
3. **Config 1:** Set Period to `H4` and Template to `MyTemplates\trend.ha.laguerre.lxn.suite.v1.tpl`.
4. **Config 2:** Set Period to `D1` and Template to `Default.tpl`.
5. Click **"Save"** and name the file `workspace_weekly.set`.
### Execution
When you start your trading day:
1. Drag the script onto any chart.
2. Click **"Load"** and select your desired workflow (e.g., `workspace_scalp.set`).
3. Click **OK**. The script will instantly open and configure all the requested charts.
4. Use the terminal's "Tile Windows" command (Alt+R) to arrange them neatly.