Example: Return the last bar number of a buyer’s bar (or pivot point)
What I’ve tried:
- Creating a public series that’s only added to under certain conditions. But the compiler complains that it’s not set under all conditions (i.e. it needs a value for every bar).
- Creating a routine that searches for the last occurrence of a condition. For this one, I can’t figure out how to set it up.
Thank you for your time and help.
Michael

Comment