The Linearly Weighted Moving Average (LWMA) is a type of moving average that assigns weights to data points based on their distance from the current point. It is calculated using the following formula:
LWMA = (Sum of (Close * Weight)) / (Sum of Weights)