If I may chime in here.
The original concept was coded by Bruster. If you look at my chart below you will see that his STOCH 7 indicator follows my stochs to the T. At the time the indicator was in its infancy stages and Bruster got as far as making it TDesk compatible. There were no refresh seconds, bars to calculate etc. Subsequent to that you released Stoch 7 TD v2 which had all the goodies with the refresh seconds, bars to calculate and I am sure would calculate at intervals without having to change the chart time frame.
My concept is to follow the daily stochs from an hourly timeframe and that is why I have linked the Ma to the first indicator data.
I tried to copy and paste some of Bruster's code to your code. No matter what I try I cannot get your version to look the same as Bruster's. If I have it on the hourly timeframe you will see a big difference, obviously because it is reading the daily time frame but It does not read the hourly on the daily. Crumbs hope I make sense
I did not want to trouble you with this because I know you are extremely busy so I just reverted to Bruster's version.
Thanks
Leon