That’s exactly what I did first thing first, @Vonasi.
If you just graph r and g, (stochastic in this case) but without the loop and leaving a defined period, it gives you something like pic1(period 100);
if you put multiple periods on different windows, you get as picture2.
Isn’t it woth some attention?
Now I am struggling to code the “convergence” of as many periods as possible turning to green/red.
P.S. don’t mind the color, just noticed they’re inverted (red for bullish, green for bearish)