The indicator calculates either the distance of the current price from the opening price, or the distance between the High and Low price, whichever is selected.
The calculation is performed for all pairs available (not hidden) in the "Market Watch" window, then the values are sorted descending/ascending and they are output to the buttons.
Clicking the displayed currency pair button opens a chart of the corresponding symbol in a new separate window.
Response to pressing the MODE button happens with a slight delay as it has to calculate things. The maximum number of pairs to calculate — 50 (in code
#define LINES 50
).