Version 1.81 2021.11.17
Updated to the new terminal build
Version 1.71 2017.03.29
Updated to the new terminal build
Version 1.7 2016.09.21
1. Added timeframes W1 and MN.
2. The arrow in the upper right corner can now be moved to any chart position (parameters "Corner of the chart to bind the arrow" and "Coordinate X and Y of the arrow in pixels" in parameters block "Direction of the trend (an arrow in upper right corner)")
Version 1.6 2015.06.25
Now, the indicator can be used by an Expert Advisor to receive buy/sell signals via the iCustom() function.
Buy signals use the 0 indicator buffer, while sell ones - the first indicator buffer.
Example of calling the iCustom() function from the EA (with the indicator parameters set to default):
Buy: SignUp=iCustom(NULL,0,"Market\\3_Stochastics.ex4",0,shift);
Sell: SignDn=iCustom(NULL,0,"Market\\3_Stochastics.ex4",1,shift).
Version 1.5 2015.06.02
1. Now, you can manage the areas where the younger Stochastic generates trade signals ("BUY-signal if Stochastic below this level" and "SELL-signal if Stochastic above this level" parameters).
I express my thanks to the trader fab13 for this idea.
2. Added a new indicator calculation mode - now, the Stochastics of higher timeframes are simulated on the current TF (New Mode option), thus removing the main drawback: the indicator does not repaint now at all!
Besides, you now can fully test the indicator in the MT4 tester.
The old indicator operation mode has been preserved for compatibility (Old Mode option).
The data of older Stochastics are written in the same way as before - regardless of the selected calculation mode.
Note: since older Stochastics are simulated on the current TF, there may be minor divergences with the readings of these Stochastics on higher timeframes.
Version 1.4 2015.05.08
Fixed bug which could occur in boundary states of higher stochastics.
It could cause incorrect signals.
I'd like to thank dh9999 for discovering this bug.
Version 1.3 2015.05.06
1. Now it sends emails and push notifications to mobile devices (ON/OFF-Mail and ON/OFF-Push parameters).
2. Two languages of message: English and Russian (Language parameter).
Version 1.2 2015.04.17
1. Fixed error: sometimes there was a signal with bi-directional higher Stochastics.
2. Added an optional signal when lines of the lower Stochastic are reversely crossed (against the trend). I use it for early exit.
You can enable and disable this option using a button in the lower right corner of the chart (adjustable parameter). Enable this button only if you are in the market and wish to close a deal according to reverse crossing of the Stochastic.
You can remove this button from the chart if you do not need this option (“ON/OFF - Reverse signal button”=false).
Version 1.1 2015.04.13
Indicators using data from higher timeframes have one considerable drawback: they can change their values till the higher timeframe bar is closed. Thus, such indicators redraw the signals after a reset.

In the new version, the indicator saves its status at each bar for the entire operation time. This prevents it from redrawing the signals, and you can see the same picture in history that you have already seen in real time.