Download MetaTrader 5

how to get highest/ lowest point of histogram

To add comments, please log in or register
Morgan Morden
682
Morgan Morden  

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?

whroeder1
16086
whroeder1  
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.
Morgan Morden
682
Morgan Morden  
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... 

To add comments, please log in or register