Specification
1) Background
I have a custom MT5 indicator: SyncCrosshair.mq5.
It already synchronizes a “crosshair” across multiple charts using Terminal Global Variables (broadcasting time/price).
However, the scroll/zoom synchronization is broken or unstable.
Goal:
Within the same layout / same sync group (charts can be different symbols and different timeframes),
when I interact with any one chart, all other charts should automatically move so they show the same time point
(or the same visible time position) — true time-linked navigation.
2) Current Issues (must be solved)
In the current code:
- On source chart: CHARTEVENT_CHART_CHANGE triggers BroadcastIfNeeded()
- On target chart: ApplyScrollSync() tries to sync via CHART_FIRST_VISIBLE_BAR
Real behavior:
- Not following scroll: dragging or zooming the source chart does not move other charts, or moves them incorrectly.
- Time misalignment: even when targets move, they do not reliably align to the same time point.
- Random “jump far back”: sometimes it jumps to very old history (e.g., 2014), which is clearly wrong.
3) Expected Correct Behavior (core requirements)
A. Click-to-align (MOST IMPORTANT)
When I click once on any chart (or move crosshair with mouse), I define a time t at that cursor position:
- All charts in the same sync group must auto-scroll so they can see the same time t.
- That time t must appear at the same horizontal screen position on every chart
(e.g., 60% from the left, controlled by AnchorPosition).
B. Drag / Mouse wheel / Keyboard navigation sync
When I operate the “source chart”:
- drag/pan left-right
- mouse wheel zoom (changes visible bars)
- keyboard navigation (Home/End/PageUp/PageDown, etc.)
All “target charts” should sync to the same time window, or at minimum:
- keep the same anchor time aligned to the same AnchorPosition
- keep visible range as close as possible
(different symbols/timeframes may not match bars exactly, but time alignment must be correct).
4) Constraints (please fix on top of this codebase)
- Communication must remain via Terminal Global Variables (existing g_key_* structure can be reused).
- Do NOT delete/recreate drawing objects frequently; reuse existing objects for the crosshair lines.
- Can add new input parameters if needed, but keep the architecture: OnChartEvent + OnTimer driven.
- Must support different symbols/timeframes:
for times not exactly available on target chart, must use nearest-bar logic
(iBarShift exact=false fallback, etc.).
5) Implementation notes (suggestions, not mandatory)
Currently the broadcast contains: t, price, left_time, right_time.
Potential root causes:
- Wrong interpretation of CHART_FIRST_VISIBLE_BAR direction / indexing.
- Converting left_time/right_time to bar shifts is too error-prone across different timeframes.
- CHART_FIRST_VISIBLE_BAR alone may be insufficient; may need:
- CHART_VISIBLE_BARS
- anchor_shift -> left_shift calculation
- or ChartNavigate() if it is more stable
- A stronger “sync protocol” may be required:
broadcast anchor_time + visible_bars (and/or scale info) so targets can derive their window reliably.
6) Acceptance Tests (delivery must pass)
1) Open 4 charts in the same sync group (different symbols + different timeframes), e.g.:
EURUSD M15, XAUUSD H1, BTCUSD M5, USDJPY H4.
2) Click any historical point on the source chart (e.g. a day in 2020):
- all other charts must scroll to show the same time point
- that time must appear at the same horizontal position (AnchorPosition=60 -> 60% from left).
3) Drag/pan source chart far left into older history:
- target charts must follow smoothly without drifting/misalignment and without random jumps.
4) Zoom with mouse wheel:
- target charts should sync zoom / visible bars if possible
OR at least maintain anchor_time alignment with similar visible range.
5) Must NOT have:
- jumping to unrelated old history (e.g., 2014)
- severe jitter / oscillation
- infinite broadcast loop between charts
7) Materials Provided
- Full source code of SyncCrosshair.mq5 (posted in this thread).
8) Deliverables
- Fixed SyncCrosshair.mq5 source code (compilable).
- Short explanation of what was changed and why the new scroll-sync logic is stable.
- Ideally, a brief description of key parameters (AnchorPosition, SyncMode behavior, etc.).
Responded
1
Rating
Projects
111
50%
Arbitration
26
31%
/
50%
Overdue
9
8%
Free
2
Rating
Projects
20
10%
Arbitration
8
38%
/
38%
Overdue
3
15%
Working
3
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
4
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
5
Rating
Projects
77
55%
Arbitration
4
0%
/
50%
Overdue
1
1%
Working
Published: 6 codes
6
Rating
Projects
4
0%
Arbitration
0
Overdue
0
Working
7
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
8
Rating
Projects
1
0%
Arbitration
3
0%
/
100%
Overdue
1
100%
Free
9
Rating
Projects
280
55%
Arbitration
0
Overdue
5
2%
Free
10
Rating
Projects
2
0%
Arbitration
0
Overdue
0
Free
Published: 1 code
11
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
12
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
13
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
Similar orders
looking for a highly experienced mql5 developer to build a professional trading ea based on multi timeframe top down analysis and market structure concepts the system should combine higher timeframe context with lower timeframe execution and provide both precise logic and clean visual representation on chart ⸻ core requirements • implementation of multi timeframe logic higher timeframe bias combined with lower
MQL5 EA Help With Development
30 - 100 USD
Hey I need help with the development of my ea. I am using a built in indicator and a custom indicator. It shouldn't take too long. I will tell you the conditions and then I just need some help with the coding but I have some experience. Thanks we can chat on whatsap or telegram
I am looking for an experienced MQL4/MQL5 developer to build a custom MT4 indicator from scratch or cracking my ex4 file that i provide to you. I already have an existing indicator (EX4) which produces highly accurate buy/sell signals. I want a similar indicator developed based on its observable behavior and signal structure. my existing indicator is pc id protected so you have to do PC ID security bypass and source
RSI indicator
130 - 150 USD
The Relative Strength Index (RSI) is a technical momentum indicator measuring the speed and change of price movements, scaled from 0 to 100 to identify overbought (>70) or oversold (<30) conditions. Developed by J. Welles Wilder Jr., it helps traders spot potential trend reversals or corrections.Imagine a stock, XYZ, is trending upwards.Overbought Signal: The price increases sharply, and the RSI rises to 75. This
📌 Project Overview: I need a full Smart Trade Management System for MetaTrader 4/5. This is a complete trading ecosystem, not a simple EA. 📌 Core Features: Smart Money Management (risk-based lot calculation) Advanced Trading Toolbox (TradingView-style drawing tools) Central Master Dashboard (risk, filters, account control) Multi-account monitoring (MT4/MT5 synchronization) Real-time monitoring (spread, equity
Hi, I am looking for someone to create me a trading indicator that will scalp the market 30-90 pips successfully in high volumes, I would like to be able to bridge this to create a signal channel for my community so it would need to have buy and sell indication on the indicator we run quite small stop losses so execution of trades can’t go in to draw down much alternatively create me a MT5 EA bot that scalps the
Alert indicator
30+ USD
I want an alert indicator using moving average and another one is customized indicator, but i don't have it's source file. is it possible? if yes let me know we will discuss further
Hello, i would like to have a ninjatrader indicator. I wanna to have a footprint indicator with delta, imbalances and big trades identifiable. Also I wanna sell it on whop. And it should be fully customisable in NT8
I am looking for an experienced developer in MQL5 to build a fully AI and automated trading bot (Expert Advisor) for MetaTrader 5. The EA will trade XAUUSD only and will be based purely on price action and Smart Money Concepts (SMC), specifically focusing on liquidity sweeps, market structure shifts (MSS/CHoCH), and wick rejection entries at key points of interest (POIs). The system must follow a strict rule: no
I need a professional MT5 custom indicator that builds and displays a full Kagi chart , along with continuation-based alert signals . Part 1: Kagi Chart Construction The indicator must: Construct a proper Kagi chart structure Support: Reversal by fixed price Reversal by percentage Maintain correct: Yang (bullish thick line) Yin (bearish thin line) Shoulder (local high) Waist (local low) Draw: Yang lines (thick
Project information
Budget
30+ USD