how to get highest/ lowest point of histogram

 

I want to get the highest point on the histogram every time it cycles above and then below the 0 line (or vice versa). Since I cannot use iHighest I do not understand how to approach the logic on this?

Also, should I use static and break in order to determine movement across the 0 line?

 
fabian waldo:I want to get the highest point on the histogram every time it cycles above and then below the 0 line (or vice versa). Since I cannot use iHighest I do not understand how to approach the logic on this?
  1. iHighest only gets the index of the highest price. Irrelevant since you're not talking about prices.
  2. Loop through the bars and find the highest value of your histogram.
 
whroeder1:
  1. iHighest only gets the index of the highest price. Irrelevant since you're not talking about prices.
  2. Loop through the bars and find the highest value of your histogram.


I understand that - but how do filter the loop to only take the high/ low of each bar cross...