Searching for entries matching linreg, looking in keywords for any words Found 4 matching entries
Entries
2424
torch2k
Version 1.3 September 17, 2017
The Trigger Lines indicator is composed of two lines. The leading line is a linear regression indicator (LinReg). The lagging line or signal line is an exponential moving average (EMA) of the leading line.
This indicator comes with two different options for identifying and uptrend or downtrend:
Trigger line cross: When the leading regression line crosses above the signal line, this is the beginning of an uptrend. Vice-versa the indicator signals a downtrend, as long as the leading line remains below the signal line.
Thrust bars: An uptrend is detected via an upthrust bar that closes and has a median above both trigger lines. A downtrend follows a downthrust bar that closes and has a median below both trigger lines.
The second trend definition adapts faster to changing market conditions, but also produces a higher number of false signals. The trend can be shown via paint bars. The indicator further comes with sound alerts that will signal a trend change.
This is a simple implementation of the trigger lines which can be used as a trend filter. The trigger lines are composed of a linear regression indicator (LinReg) and a signal line, which is calculated as the exponential moving average (EMA) of the linear regression line.
When the LinReg indicator crosses above the signal line, it is considered bullish, if it crosses below, it is considered bearish.
The indicator allows to select a color for bullish and bearish conditions and shades the area between the trigger lines.
Default values used for the periods are 80 for the LinReg indicator and 20 for the EMA.
Update January 13, 2011: Indicator speed improved.
Update August 25, 2012: Algorithm for draw area improved to work with COBC = false.
Update October 5, 2013: Indicator code modified to allow for correct coloring when the plot is shifted.