mirror of
https://github.com/softwaredevelop/mql5.git
synced 2026-07-28 21:17:43 +00:00
3.0 KiB
3.0 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
-
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.
- 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. 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
workspace_scalp.set.
Creating a "Weekly Overview" Workspace
- Open the script properties.
- Set
InpSymbolsto a broader list:EURUSD, Gold, US500, Bitcoin. - Config 1: Set Period to
H4and Template toMyTemplates\trend.ha.laguerre.lxn.suite.v1.tpl. - Config 2: Set Period to
D1and Template toDefault.tpl. - Click "Save" and name the file
workspace_weekly.set.
Execution
When you start your trading day:
- Drag the script onto any chart.
- Click "Load" and select your desired workflow (e.g.,
workspace_scalp.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.