@nicolas
It doesn’t really matter, since every version is based on the same core, to separate each indis in two variables r and g over multiple periods.
I think there’s huge potential behind it but still can’t get what I want. I will make a more descriptive post later.
I’ve not looked closely at that code for a while so I’m not sure what the maximum values for R and B in the indicator are (possibly 255) but you could just GRAPH R and B and then see what their values are when you would like to open a trade or what the maximum values are. Then use a loop to check each value for every period and BREAK if one does not meet your desired value.
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)
Isn’t it woth some attention?
That depends as in reality you are just looking an indicator with a whole lot of periods and then trying to decide which of those periods are important and how many close to each other are important. It is just a 3D curve fit in reality. Where do you draw the line for entry and exit- slightly red and slightly green or very red and very green and then how very red is very red and how very green is very green?
It depends.
Being a visual one, I need to look before creating a trading system.
For example, I would test the entries when we have all green or red in a certain amount of periods (see pic3, green or red lines).
That’s why I find fascinating, because you have a LOT of periods simultaneously to give you insight!