Zoom MT5 B
- Индикаторы
- Mariusz Franciszek Szczepanczyk
- Версия: 1.10
- Активации: 5
Zoom MT5 — TradingView-Style Smooth Zoom + Optional Pan
Transforms MT5 chart navigation into TradingView experience - smooth zoom animation with optional horizontal pan on every mouse wheel click. 1 wheel tick = 1 toolbar zoom + fluid motion.
Key features:
1. Smooth zoom - gradual scale change over SmoothSteps=8 frames with ease-out easing
2. Optional auto-pan with zoom - horizontal shift by PanBars=5 bars prevents "zoom into void" (LockToRight=false)
3. Precise control - ZoomStep=1 (toolbar equivalent), PanBars=5 (bars shift)
4. Animation lockout protection - prevents spam during animation
5. MT5 scale limits - auto-clamps 0-5 (no crashes)
6. Millisecond animation - SleepTime=15ms (120ms total ultra-smooth)
7. Zero CPU overhead - only active on mouse wheel
8. Universal - works on ALL charts/timeframes instantly
9. One-click install - drag and Zoom navigation appears
10. Works on real and demo accounts.
11. Hedging/netting support - works with all MT5 account types.
Perfect TradingView recreation:
Wheel UP: zoom IN + [optional] pan RIGHT (ZoomStep + PanBars)
Wheel DOWN: zoom OUT + [optional] pan LEFT (ZoomStep - PanBars)
SmoothSteps=8: 8-frame ease-out animation 0%→20%→44%→72%→92%→100%
SleepTime=15ms: 120ms total animation (invisible smoothness)
Animation math perfection:
current_scale = ChartGetInteger(CHART_SCALE) // 0-5
target_scale = current_scale + ZoomStep * sign // +1/-1 default
progress = 1-(1-t)² // ease-out easing
scale_now = current_scale + (target - current) * progress
ChartNavigate(CHART_CURRENT_POS, -sign * PanBars * progress) // smooth pan
Bulletproof implementation:
CHART_EVENT_MOUSE_WHEEL = true // captures wheel
CHART_EVENT_MOUSE_MOVE = true // future-proof
Animation lockout: is_animating flag prevents spam
Scale clamping: if(target < 0) target=0; if(target > 5) target=5
MathRound(scale_now) = pixel-perfect integers
Configurable smoothness:
ZoomStep=1: standard toolbar zoom (change for power users)
PanBars=5: smooth shift (0=disable pan, increase for more movement)
SmoothSteps=8: buttery smooth (1=instant, 16=slow motion)
SleepTime=15: 15ms frames (60 FPS equivalent)
LockToRight=true: disables pan (false=pan enabled)
Deployment perfection:
1. Drag to ANY chart - auto-enables mouse wheel
2. Scroll wheel UP/DOWN - instant TradingView feel
3. Set LockToRight=false for pan+zoom combo
4. Works immediately - no restart needed
5. Zero visual elements - pure navigation upgrade
Technical superiority:
Single OnChartEvent handler - zero overhead - is_animating flag - perfect spam protection - CHART_CURRENT_POS navigation - Sleep(SleepTime) in loop - frame-perfect animation - ChartRedraw() finalization - crisp finish - Empty OnCalculate() - no plotting overhead
Compatibility guarantees: - All MT5 builds - CHART_SCALE 0-5 universal - All symbols/timeframes - zero conflicts - Multi-chart safe - each chart independent - EA-safe - no interference with trading logic - Indicator compatible - stacks with any tools
Stability perfection: - dparam > 0 = wheel UP (zoom IN), < 0 = wheel DOWN - sign = (int)dparam > 0 ? 1 : -1 // clean direction - Boundary checks prevent crashes - No object creation = zero cleanup - Thread-safe Sleep() integration
Ultimate MT5 upgrade - Zoom MT5 smooth zoom + optional pan in native MT5. One wheel tick = professional navigation. Zero learning curve, instant results.
ZoomStep – sets the zoom scale change amount per mouse wheel step (1 = one toolbar zoom click equivalent).
PanBars – sets the horizontal chart shift amount in bars accompanying each zoom step (0=disable).
SmoothSteps – defines the number of intermediate steps for smooth zoom animation.
SleepTime – sets the millisecond delay between animation steps (lower = faster animation).
LockToRight – disables pan shift when true (default: true).
