Linear Regression Channel Strategy by morzns

By morzns

Performance Metrics

Description

The strategy is based on the principle of mean reversion—that is, replicating trades within a linear regression channel of “n” periods. Buy if the price crosses below the lower channel line, placing a stop-loss order at the same distance as that between the lower channel line and the regression line; sell 50% of the position if the price rises and touches the regression line; and sell the remaining 50% if the price rises and touches the upper channel line. The same applies to the opposite trade: that is, short sell if the price touches the upper channel line, place the stop-loss at the same distance as that between the regression line and the upper channel, close 50% of the position if the price reaches the regression line, and close the remaining 50% if it reaches the lower channel.

Browse all 5,900+ TradingView Pine Script strategies

View on TradingView