Stochastic compares the closing price with the high/low prices using the formula
%K = (CLOSE - MIN (LOW (%K))) / (MAX (HIGH (%K)) - MIN (LOW (%K))) * 100
I wanted to replace closing with opening in the code, but I didn't succeed.
Make the stochastic open by replacing close with open