Crosshair Zoom MT5
- 实用工具
- 版本: 29.0
- 激活: 20
You are on M5 and you need one specific candle — that exact hour, that exact news spike, that exact level. Then the routine starts: you scroll, you drag the chart, you lose sight of the place you started from, and by the end you no longer remember why you came here at all. And when the point is finally found, the stock MT5 cursor tells you exactly two things: price and time. Everything else lives inside the Properties window — the place a beginner visits once and never returns to. That is exactly where the classic puzzle comes from: "my trade is green on price, so why is the minus growing?" — Because it grows out of swaps, the thing traders remember only when they pull their first report.
Crosshair Zoom MT5 removes both problems. The CROSSHAIR button (or the Q key) puts a crosshair at the centre of the window. Drag either line to where you need it — and the chart centres on that exact candle, horizontally and vertically. No more blind scrolling: the point you aimed at stays dead centre after every zoom step.
Swap is always in front of your eyes. A permanent line in the corner shows Spread / Swap Long / Swap Short — right where the decision is made, not buried inside the terminal. It shows BUY and SELL separately at a glance: which side costs you money to hold, and which one actually pays. On a long-held position this is the parameter that can eat the entire profit — here you see it before you enter, not after.
The point is remembered. Switch timeframes and the crosshair is recreated at the same moment and centred again. If this timeframe has no data for that point, the utility says so honestly: a framed panel in the centre of the screen, a one-shot sound, and a bridge button that jumps you to the smallest timeframe where the data actually exists.
✅ Features
Crosshair & jump-to-point
- CROSSHAIR button at top centre + Q hotkey to toggle the mode.
- Drag either crosshair line (grab tolerance adjustable) → the chart centres on that point.
- Centring on both time and price (vertical centring works with the scale fix / F key on).
- Zooming keeps your point dead centre — after every wheel notch the view re-centres on it.
- The point (time and price) is remembered across timeframe switches and restored in place.
- TF Bridge: if this timeframe has no bars for the point, a button offers the jump to the nearest larger timeframe that does.
- No-data warning: framed panel in the centre of the window + one-shot sound; it clears itself as soon as history finishes loading.
- The point's timestamp is written to a common file under MQL5\Files\Common and always repeated in the on-screen confirmation.
- Timestamp format to minutes or to seconds (input-controlled).
Zoom & scale
- Horizontal wheel zoom with adjustable sensitivity, including fractional values (accumulated into full steps).
- Vertical zoom — where stock MT5 offers none — through the scale fix (F key).
- Shift + wheel = pan along time without changing zoom (step in % of window width).
- Wheel chart-scrolling works only while the left button is held, so a stray scroll can't break your aim.
- Auto-fit behaves like a double-click on the price scale: with the crosshair off, an external auto-fit press refits the view and the new range sticks.
- Pressing the terminal's auto-scroll button (with the crosshair off) centres the chart on the latest bar while autoscroll stays off.
Information & timer
- Permanent info line: Spread, Swap Long, Swap Short — in any of the four corners.
- Countdown to the close of the current candle (MM:SS; HH:MM on H4 and above), shown/hidden by double-clicking it.
- A hidden countdown keeps a hot spot and a tooltip, so it can be brought back at any moment.
⚙️ Inputs
Main panel
| Input | Default | Purpose |
|---|---|---|
| Corner | Right Lower | Corner for the info line (spread/swap). Offsets behave identically for all four corners |
| FontSize / FontName | 7 / Arial | Font of the info line and the countdown |
| TextColor | DarkTurquoise | Colour of the info line and the active countdown |
| XOffset / YOffset | 10 / 10 | Actual pixel gap from the chosen corner |
| CountdownYOffset | 5 | Countdown offset above the current candle high, in points |
| TimerEnabledByDefault | true | Show the countdown at startup |
| HiddenTimerColor | DimGray | Colour of the hidden countdown ( —:— ) |
| ScaleFixEnabledByDefault | true | Enable Y scale fix at start (required for vertical zoom) |
| AutoFitRecenterWhenCrossOff | true | With the crosshair off, an external auto-fit refits and locks the new view |
| AutoScrollPressCenters | true | Terminal auto-scroll button press = centre on the latest bar; autoscroll stays off |
| ScaleXSensitivity | 1.0 (0.1–2.0) | Horizontal zoom sensitivity; fractional values accumulate into full steps |
| ScaleYSensitivity | 0.1 (0.01–0.5) | Vertical zoom sensitivity (range shrink/expand per notch) |
Group "=== Crosshair / Jump to time ==="
| Input | Default | Purpose |
|---|---|---|
| CrosshairEnabled | true | Enable the button and the draggable crosshair |
| ButtonText | " CROSSHAIR " | Button caption |
| ButtonFontSize / ButtonTextColor / ButtonBgColor | 6 / Black / Gold | Button appearance |
| ButtonWidth / ButtonHeight / ButtonYOffset | 120 / 24 / 4 | Button size and top offset (always kept horizontally centred) |
| CrosshairColor | LawnGreen | Crosshair line colour |
| CrosshairStyle / CrosshairLineWidth | STYLE_DOT / 2 | Line style and width |
| GrabTolerancePx | 6 | A click within N px of a line grabs the crosshair |
| CopyToClipboard | true | Write the point's timestamp (common file + on-screen confirmation) |
| RememberPointOnTFChange | true | On timeframe switch, recreate the crosshair on the remembered point and centre on it |
| NoDataColor | OrangeRed | Warning panel frame and bridge button colour |
| WarnSoundEnabled / WarnSoundFile | true / alert2.wav | One-shot sound when the point has no data (file from the terminal Sounds folder) |
| IncludeSeconds | false | Timestamp format: minutes (off) / seconds (on) |
| ReCenterOnZoom | true | After every zoom step the point returns to the centre of the window |
| BridgeTFEnabled | true | Offer a button to the timeframe that actually has data for the point |
| Input | Default | Purpose |
|---|---|---|
| ClipboardFileCopy | true | Write the stamp to MQL5\Files\Common\CrosshairZoom_Clipboard.txt |
| AssumedDpi | 96 (0 = 96) | DPI used for text-size estimation of the warning panel; set 120 or 144 on 125%/150% Windows scaling so the frame fits tightly |
Hotkeys & gestures
| Action | How |
|---|---|
| Crosshair on/off | CROSSHAIR button or Q key |
| Jump to a point | Drag a crosshair line and release (a plain press without movement does nothing) |
| Y scale fix | F key |
| Pan along time, no zoom | Shift + wheel |
| Show/hide countdown | Double-click the countdown itself |
| Scroll the chart | Wheel while holding the left mouse button |
