1409 visningar
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!
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!
Twitter - https://www.twitter.com/cryptorhythms
Cryptorhythms Group Chat - https://t.me/cryptorhythms
Cryptorhythms Group Chat - https://t.me/cryptorhythms
Kommentarer
awesome work !!! I am so great full that you published this
as a total programming and pinescript noob people like you make my dreams possible
My goal was to start a part of an indicator on a Nth Occurrence
I could not be successful with out the help and hard work of the Pine script giants or Legends that came before me
I have been trying for over 8 days to build what I wanted to
this was the break though I needed
Thank you kindly :) X infinity !!!