Improved Commodity Channel IndexI took the normal CCI version and I made it better and more pleasantly visual.
At the same time now the CCI changes color based on the direction is going to take
We also have more levels, to define even better the current situation.
Details are simple :
green color cci = uptrend - > buy
red color cci = downtrend - > sell
Improved
Nth-Occurrence Custom barssince() Function by Cryptorhythms [CR]Nth-Occurrence Custom barssince() Function by Cryptorhythms
Description
The vanilla barssince() function in pine only finds the number of bars since the most recent occurrence of the condition. This version allows you to specify an Nth occurrence back to check the bars since! Its also a nice little one liner.
I really hope you enjoy it and if you're looking for more, this is our 79th script on TV, so there is plenty to choose from!
Let me know in the comments if you create anything useful from this or think of anyway to improve it!