SubScaler - MetaTrader 5 Script | Forex Indicator Download - MT4/MT5 Resources



This is a secondary indicator that allows you to adjust the vertical scale of the subwindow interactively (using keys), which is useful for zooming in and out of the graph of your favorite indicator placed in the same subwindow.
SubScaler allows you to view a more detailed chart when some huge candles force the terminal to squeeze the entire picture along the vertical axis. This is a rare problem, but if it occurs, MetaTrader does not provide a built-in mechanism for temporary zooming in/out.
SubScaler has no buffer and does not display anything itself.
SubScaler must be the first indicator in a subwindow, i.e. it is added to the main window and initiates the creation of a new subwindow. Your indicator (whose scale should be controlled by SubScaler) must be the next indicator, ie it is dragged and dropped via SubScaler into an empty subwindow.
The "Inherit Scale" option needs to be enabled for your indicator!

The example above demonstrates the options for the standard volume indicator, but it works the same for other indicators, including custom indicators.
When both indicators are applied to a subwindow, use the up/down arrow keys to zoom in/out; hold down the Shift and arrow keys to move up/down.

Zoom in means that the picture becomes larger (enlarged, can be cropped), while zoom out means that the picture becomes smaller (zoomed out).
The chart must have keyboard focus for key presses to take effect.
input parameters
When a chart is launched in the terminal or restored from a loaded template, SubScaler picks the scale state from the previous scale.
Attachment download
📎 subscaler.mq5 (3.91 KB)
Source: MQL5 #34283
💡 Featured Recommendations
✍️ Latest by the author
- •
- •
- •
- •
- •
- •
📌 Popular topics
- •
- •
- •
- •
- •
- •
- •
- •
🔗 You May Be Interested In
- •
- •
- •
- •
- •
- •