Support Board
Date/Time: Sat, 23 Nov 2024 17:38:32 +0000
Post From: Using a Moving Average of a Data Point
[2013-07-24 17:02:07] |
molandes - Posts: 5 |
Hello, I am in the process of transposing my custom indicators created in Ensign to Sierra. This will require the ability to use a moving average as a data point in the calculation of another moving average. For example: [MA_1 - (MA_2(MA_3)] + MA_4 This formula takes MA_1 and subtracts another moving average which uses a third moving average as the data point (MA_2(MA_3) and then finally adds the value of a fourth moving average (MA_4). Can anyone point me into the right direction on how the code would look in Sierra to achieve this? Any documented examples of this would be greatly appreciated as well. |