mirror of
https://github.com/softwaredevelop/mql5.git
synced 2026-07-27 20:47:44 +00:00
3.4 KiB
3.4 KiB
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
.setfile, allowing you to switch between different trading modes (e.g., "Morning Scalping", "Weekly Analysis") in seconds.
3. Parameters
InpUseMarketWatch: Iftrue, loads all symbols from the Market Watch window.InpSymbols: A comma-separated list of the symbols you want to load (ignored ifUse Market Watchis true).- Example:
EURUSD, GBPUSD, XAUUSD, US500
- Example:
- 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
Templatesfolder, 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.
- If the template is in the root
4. Configuration & Presets
To organize your workspace layouts, we recommend saving your configurations as .set files using the following naming convention:
ws.[Strategy].[Market].[Timeframe].set
Recommended Presets
| Preset Name | Purpose | Configuration Example |
|---|---|---|
ws.scalp.forex.m5.set |
Intraday Forex Scalping. | Symbols: EURUSD,GBPUSDSlot 1: M15 + Trend TemplateSlot 2: M5 + Scalp Template |
ws.trend.indices.h1.set |
Swing Trading Indices. | Symbols: US500,DE40Slot 1: H4 + Market StructureSlot 2: H1 + Trend Suite |
ws.analysis.mixed.daily.set |
Daily Market Review. | Symbols: EURUSD,Gold,US500Slot 1: D1 + Session Analysis (Full Day) |
5. Usage and Workflow
The power of this script lies in using Presets (.set files).
Creating a "Morning Scalp" Workspace
- Open the script properties.
- Set
InpSymbolsto your favorite pairs:EURUSD, GBPUSD, USDJPY. - Config 1: Set Period to
M15and Template toMyTemplates\trend.ha.base.tpl(for trend context). - Config 2: Set Period to
M5and Template toMyTemplates\scalp.std.vwap.tln_sum.full.tpl(for entry). - Click "Save" and name the file
ws.scalp.forex.morning.set.
Execution
When you start your trading day:
- Drag the script onto any chart.
- Click "Load" and select your desired workflow (e.g.,
ws.scalp.forex.morning.set). - Click OK. The script will instantly open and configure all the requested charts.
- Use the terminal's "Tile Windows" command (Alt+R) to arrange them neatly.