Watch how to download trading robots for free
Find us on Telegram!
Join our fan page
Interesting script?
So post a link to it -
let others appraise it
You liked the script? Try it in the MetaTrader 5 terminal
Indicators

SubScaler - indicator for MetaTrader 5

Views:
8950
Rating:
(28)
Published:
2021.04.06 23:52
SubScaler.mq5 (3.91 KB) view
Need a robot or indicator based on this code? Order it on Freelance Go to Freelance

This is a helper indicator which allows you to adjust vertical scale of a subwindow interactively (using keys), which is useful for zooming in and zooming out graphs of your favourite indicator placed in the same subwindow.

SubScaler allows you to view graphs with larger level of detail, when some enormous candles force the terminal to squeeze the overall picture along the vertical axis. This is a rare problem, but if it occurs, MetaTrader does not provide a built-in mechanism to zoom in/out ad hoc.

SubScaler does not have buffers and displays nothing on its own.

SubScaler must be the 1-st indicator in the subwindow, that is it's added to the main window and initiates new subwindow creation. Your indicator (whose scale should be controlled by SubScaler) must be the next one, that is it's dropped to the empty subwindow with SubScaler.

It's required to enable 'Inherit scale' option for your indicator!

"Inherit scale" option in MetaTrader 5 indicator

The example above demonstrates the option for standard Volumes indicator, but it works in the same way for others, including custom indicators.

When both indicators are applied to a subwindow, use Up/Down arrow keys to scale up/down; hold Shift with the arrow keys to move up/down.

SubScaler indicator in action

Scaling up means that picture becomes larger (zoom in, can be clipped), whereas scaling down means that picture becomes smaller (zoom out).

The chart must have keyboard focus for the keys to take effect.


Input parameters

  • Initial Maximum - upper bound of the data range at primary placement on a chart, +1000 by default;
  • Initial Minimum - lower bound of the data range at primary placement on a chart , -1000 by default;
  • Scale Factor - the step for the scale increase/decrease [0.01 ... 0.5], 0.1 by default;


When a chart is restored at the terminal start-up or from a loaded template, the SubScaler picks up the scale from the previous state.


The Decycler II The Decycler II

The Decycler II: John Ehlers, "Stocks & Commodities V. 33:09", стр.12-15

Ichimoku Alerting , Tenkan-sen Kijun-sen Cross Alert Ichimoku Alerting , Tenkan-sen Kijun-sen Cross Alert

Ichimoku is one of the excellent indicator which can work lonely or with other indicators. With Alerting indicator which send notification to your cell phone whenever Tenkan-sen Cross Kijun-sen you can have an opportunity to enter or exit market at right time .

Average Intraday Range Average Intraday Range

Calculates the average range of prices (in points) for intraday periods.

Extended Heikin Ashi Indicator Extended Heikin Ashi Indicator

Extended version of the original Heikin Ashi indicator.