Average Stocastic indicator for several timeframes – indicator MetaTrader 4

Average Stocastic indicator for several timeframes - indicator for MetaTrader 4
My first stategy was to buy when several stochastics are below 20, and sell when they are above 80. It was unconvenient to change periods every time, so I have developed this indicator, maybe it can be useful. It shows Stochastics for several timeframes in a single chart, also it calculates the average value (blue