I moved your post to the English forum. You cannot use a language different from that of the forum you choose.
I also modified the last word of your title Stoc in Stochastic, to make it clearer.
As for your question about highest and lowest values of the Stochastic or Rsi, you can only determine it hit a new minimun/maximum AFTER it’s passed, because whenever it sets a new maximum/minimun how can you foretell the next bar it will not go any higher/lower?
So, to determine the maximun/minimum of an oscillator you have to select the number of past bars you want to scan (10, 20, 30….?) and use HIGHEST/LOWEST to retrieve it. An alternative way is to use FOR…NEXT loops, but you won’t get better results and will slow down execution.
If you need to search documentation and tons of examples about any keyword or topic, you may want to use the search box that opens whenever your mouse hovers your avatar (upper right corner, in the blue menu bar).
Roberto
2 users thanked author for this post.