After submitting this indicator to the mql4 codebase 3 months ago, it is still "under proof reading by moderator", with no comments or responses from them yet.
I'm just going to post the indicator here so that people can actually get some use out of it. (It seems a waste to have it sitting around doing nothing when it looks like the mql4 codebase is on indefinite pause).
I've tried to make sure the code is safe and robust. If the admins there ever get round to accepting this code for publishing in the codebase, I guess this posting here can be deleted.
Manually adjust the period (and other values) of a technical indicator quickly
and easily, by using up to 4 visual "sliders" in the chart window -
without having to repeatedly change the values in the input window or even
having to take your eyes off the indicator.
Each slider consists
of up to 50 separate boxes in a horizontal line across the chart window.
Each box has an associated value. There is a circular "marker" or
"token" which can be placed in any box to select that value. The
selected value is then applied to the chosen parameter of the indicator
in the separate window, and the indicator is automatically updated. This
indicator uses MT4 chart objects, and makes no use of DLLs.
The
external variables allow you to choose how many sliders to display (up
to 4), what values to start and end each slider with, the increment of
value increase between each subsequent box (up to a maximum of 50 boxes
per slider), the description and colour associated with each slider, the
number of bars to be counted in the indicator and whether or not to
display the X and Y coordinates of the first marker. The slider values
may include decimals and/or minus numbers.
The
chart objects are displayed as labels, and therefore will stick to the
window. The object positions are set by X and Y coordinates. The default
settings for these coordinates are described within the code and can be
easily adjusted (requiring a re-compilation).
The default
indicator is Stochastic. If you would like to use a different indicator
then enter the relevant code in lines 448-451, and simply replace one of
the parameters with the relevant slider array.
If
you would like to use an indicator which is displayed in the chart
window then change line 34 to "#property indicator_chart_window".
The
slider values will only update once per tick. If you wish to use this
when there are no ticks coming in (eg. at the weekend) then you will
need to update the chart in another way. One method is simply to press
Alt+C+R. Another method is to use a separate script which will
automatically post a "fake tick" at regular intervals, such as the one described here: https://forum.mql4.com/35406/page2#373533.
I've tried to make the code as bug free as possible. There may still be some improvements that people can suggest.
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
After submitting this indicator to the mql4 codebase 3 months ago, it is still "under proof reading by moderator", with no comments or responses from them yet.
I'm just going to post the indicator here so that people can actually get some use out of it. (It seems a waste to have it sitting around doing nothing when it looks like the mql4 codebase is on indefinite pause).
I've tried to make sure the code is safe and robust. If the admins there ever get round to accepting this code for publishing in the codebase, I guess this posting here can be deleted.
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Indicator Sliders
Manually adjust the period (and other values) of a technical indicator quickly and easily, by using up to 4 visual "sliders" in the chart window - without having to repeatedly change the values in the input window or even having to take your eyes off the indicator.
Each slider consists of up to 50 separate boxes in a horizontal line across the chart window. Each box has an associated value. There is a circular "marker" or "token" which can be placed in any box to select that value. The selected value is then applied to the chosen parameter of the indicator in the separate window, and the indicator is automatically updated. This indicator uses MT4 chart objects, and makes no use of DLLs.
The external variables allow you to choose how many sliders to display (up to 4), what values to start and end each slider with, the increment of value increase between each subsequent box (up to a maximum of 50 boxes per slider), the description and colour associated with each slider, the number of bars to be counted in the indicator and whether or not to display the X and Y coordinates of the first marker. The slider values may include decimals and/or minus numbers.
The chart objects are displayed as labels, and therefore will stick to the window. The object positions are set by X and Y coordinates. The default settings for these coordinates are described within the code and can be easily adjusted (requiring a re-compilation).
The default indicator is Stochastic. If you would like to use a different indicator then enter the relevant code in lines 448-451, and simply replace one of the parameters with the relevant slider array.
If you would like to use an indicator which is displayed in the chart window then change line 34 to "#property indicator_chart_window".
The slider values will only update once per tick. If you wish to use this when there are no ticks coming in (eg. at the weekend) then you will need to update the chart in another way. One method is simply to press Alt+C+R. Another method is to use a separate script which will automatically post a "fake tick" at regular intervals, such as the one described here: https://forum.mql4.com/35406/page2#373533.
I've tried to make the code as bug free as possible. There may still be some improvements that people can suggest.
Enjoy.