Here is a version that compares two methods of calculating LSMA.
One is using the summation method posted over 10 years ago,
The new version was a discovery found on forex-tsd I think, combining SMA and LWMA for less overhead and plots the same.
Minor differences mentioned in the one using mtf MA's might be due to use of Point instead of myPoint when rounding.
Where can I find source code so I can compare the method used to calculate LSMA?