I find recently that in Amibroker 6.35.1 you can calculate automatically and graphically the percentage of two level of price.
Simply click on Trendline. You put the trendline on the tow points that you have interested, and the result is the percentual of the gain or retracement and the period in bars.
Greeting.
Have a good Sunday.