Updates:
1) Added the average line of the divergence, which can be useful to analyze the historical relationship between the two indexes by comparing it to the current divergence. By default, the line represents the median value over a certain period, but you can use a moving average instead, choosing from Simple Moving Average (MA), Exponential Moving Average (EMA), and Weighted Moving Average (WMA). It is better using the median rather than a moving average, because the relationship between the two indexes is not necessarily linear or trending over time. Additionally, extreme values or outliers in the data may significantly affect the results of a moving average calculation, leading to less accurate conclusions.
2) Added another row on the table, which shows the value of the distance between the current divergence and its average.
3) Improved the menu.
4) Cleaned the code and improved its overall appearance.