Greetings,
First off, after reading Mr. Chourou's post above, I totally concur with him about using Trigonometry can complicate things (as shown on his screenshots too), while just a simple Algebraic formula of Distance and Time is not only the simplest way but also the most efficient to be used as the calculation logic in your strategy.
Now as for your recent question about Moving Averages and keeping a track of their trend, the most effective way to go about it is by modifying the "Shift" integer when collecting data from any indicator in your strategy. As you may see from the following screenshot of a very simple strategy based on the Simple Moving Average Indicator; there are two candles being analyzed - the Current 10M Candle and the 10M candle before it by including the number 1 into the Shift integer. This method can be used for tracking or checking the Moving Averages over a longer course of past candle periods by adding more indicator components in your strategy and modifying their Shift values.
Based on my own experience with Visual JForex so far, I will share with you that I have overcame most of the challenging issues that I once faced and as well gained a lot of new knowledge by going through the previous forum threads here, especially the strategy examples that Mr.Chourou has attached on any topic.
Cheers!