Crosshair Sync
- Utilità
- Wael Tahar
- Versione: 1.0
- Attivazioni: 5
Crosshair Sync is a lightweight MetaTrader 5 utility that synchronizes your crosshair position across all open charts in real-time. When analyzing multiple timeframes or symbols, simply press Shift+X to activate the synchronized crosshair, and move your mouse to see the exact same time point highlighted on every chart simultaneously.
Key Features:
- Multi-Chart Synchronization: Automatically syncs the vertical time line across all open charts, allowing you to analyze the same time point on different symbols and timeframes
- Hotkey Activation: Toggle the crosshair sync on/off instantly using Shift+X (customizable hotkey)
- Escape Key Deactivation: Quickly turn off the sync by pressing ESC
- Time-Based Sync: Uses actual time coordinates (not pixel positions) ensuring accurate synchronization regardless of chart scroll position
- Independent Price Scales: The horizontal line shows only on the active chart, respecting different price scales across symbols
- Customizable Appearance: Full control over line color, style, and width
- Persistent State: Remembers sync state across terminal restarts
- Throttled Updates: Optimized 1ms sync delay prevents performance issues
How to Use:
- Open multiple charts (same or different symbols/timeframes)
- Add the indicator to all required charts
- Press Shift+X to activate crosshair sync
- Move your mouse - the vertical time line appears on all charts
- Press Shift+X again or ESC to deactivate
Input Parameters:
- Short Key: Hotkey letter used with 'Shift' to toggle crosshair sync on/off
- Line Width: Accepts any letter A-Z (case-insensitive; lowercase letters are automatically converted to uppercase). Example: Setting "X" creates the Shift+X hotkey combination
-
Line Color: Color applied to both the vertical and horizontal crosshair line
-
Line Style: Visual style of the crosshair lines. Options: STYLE_SOLID, STYLE_DASH, STYLE_DOT, STYLE_DASHDOT, STYLE_DASHDOTDOT
- Thickness of the crosshair lines in pixels
- Recommended range: 1-5 for visibility without cluttering the chart
