Define the calculation and its source prices
The January 2001 Stocks & Commodities Traders' Tips page provides high/low implementations of Jayanthi Gopalakrishnan's index. Let H be the highest high and L the lowest low across N consecutive bars, including the evaluated bar. Set R = H − L and G = ln(R) / ln(N). Natural logs and base-10 logs give the same ratio when both numerator and denominator use the same base.
- Use an integer N ≥ 2 and a positive range. This page waits for N complete, valid high/low observations; it does not calculate from a shorter initial window.
- The same 2001 collection also contains a close-only implementation. Highest close minus lowest close can differ from highest high minus lowest low. A script title alone does not identify which version you have.
- GAPO is a logarithm ratio, not ln(R/N) and not an average of individual candle ranges. Do not substitute either expression when checking parity.