iCrosshair - Live Candlestick Indicator on Hover - MetaTrader 5 Script - MT4/MT5 Resource




Interactive crosshair indicator that displays real-time candle analysis in a single-line information bar. Complete rewrite of the original iCrosshair.mq4 (2015-2016) for MetaTrader 5.
Bar: 5 | Points: 12.3 | Oh: 1.0850 Hours: 1.0875 Length: 1.0820 C : 1.0860 | Range: 55 | Body: 40 % | UW: 25 Weight: 35 % | Volume: 1234 | 2026.01.15 14:00
| Metric | describe |
|---|---|
| bar | Current bar index (0 = current bar) |
| base point | The distance between the cursor and the closing price of the bar |
| oil/oil/liquid/oil | OHLC prices (compact format) |
| scope | Total candle size (points/points) |
| Body% | body as percentage of range |
| Extra width%/length and width% | Upper/lower wick percentage of range |
| roll | bar chart scale |
| closing time | Candle closing date and time |
parameter
Show options
- Show comments (true) - Show/hide the information bar
- SHOW_OHLC (true) - Include O/H/L/C prices
- Show volume (true) - include quote volume
- Display ratio (true) - includes range, body%, UW%, LW%
visual settings
- Line Color (SlateGray) - Crosshair Color
- Line Style (Points) - Line style
- linewidth (1) - line thickness(1-5)
Performance
- Information update interval (50ms) - information bar update frequency
How to use
- Add indicators to any chart
- Hover over any candle to see instant analysis
- Press 'T' or click on the line to freeze/unfreeze
- Freeze lines can be used as support/resistance reference
technical details
- MQL5 native architecture (64-bit optimization)
- Smart caching with sliding window (200 items)
- Debounced rendering at 20 FPS - ~80% CPU reduction
- Comprehensive bounds checking and error handling
author
Attachment download
📎 iCrosshair.mq5 (19.39 KB)
Source: MQL5 #68324
💡 Featured Recommendations
✍️ Latest by the author
- •
- •
- •
- •
- •
- •
📌 Popular topics
- •
- •
- •
- •
- •
- •
- •
- •
🔗 You May Be Interested In
- •
- •
- •
- •
- •
- •