Description:
This method allows the moving average to be more responsive to changes in the base data.
Formula:
This function calculates a moving average by first calculating a regression
line for the last term array items, then projecting forward one item.
Parameters:
Period Period with which to base the Least Squares Moving Average calculation
Arguments:
OHLC of the Time Frame, or an
Output Indicator of a study in the TimeFrame
Output Indicators:
lsSMA
Example:
Study Name Expanded in a 3 minute timeframe:
I3_LstSqrMA(10)(I3CloseI3)_I3
This study calculates an Least Squares Moving Average with a period of 10 on the 3 minute time frame,
using the close of the 3 minute bar as input argument.
The output indicators names are appended to the studyname,
that is if the studyname is sn1 then
the outputindicator is
sn1::lsSMA