Finding the highest and lowest of a range

Posted By: littlereddot

Finding the highest and lowest of a range - 08/29/20 08:52

Hi

How can I use Zorro to find the highest and lowest of X bars in 1hr bar period? And to find out whether the price mostly recently created highest price level or mostly recently created the lowest price level?
Posted By: Morris

Re: Finding the highest and lowest of a range - 08/29/20 11:13

> How can I use Zorro to find the highest and lowest of X bars in 1hr bar period?

BarPeriod = 60; // 1 hour bars

Then use HH(int X, int Offset) and LL(int X, int Offset) for the highest high and lowest low of X bars, see here: zorro-project.com/manual/en/ta.htm

> find out whether the price mostly recently created highest price level or mostly recently created the lowest price level?

if(priceHigh(0) == HH(X)) { ... } // Compare most recent high end of the bar to highest high. For low accordingly
Posted By: littlereddot

Re: Finding the highest and lowest of a range - 08/30/20 00:49

Thank you Morris
© 2024 lite-C Forums