OPEN-SOURCE SCRIPT
robotrading linreg

What is Linear Regression?
(English) tradingview.com/scripts/linearregression/
(English) tradingview.com/ideas/linearregression/?solution=43000518108
(Russian) Link
This script
Straight lines show the last linear regression channel. The smooth lines show the coordinates of the same channel in the past. This allows you to backtest this strategy using past prices.
It also makes sure that the linear regression channel is useless for the cryptocurrency market :)
Strategy
The limit order to open a long position is on the bottom line (lime color). Limit order to open a short position is on the top line (red). All positions are closed by a limit order when the central line of the channel is crossed (blue). A limit order is also used to close positions.
For
Do not use in the cryptocurrency market.
(English) tradingview.com/scripts/linearregression/
(English) tradingview.com/ideas/linearregression/?solution=43000518108
(Russian) Link
This script
Straight lines show the last linear regression channel. The smooth lines show the coordinates of the same channel in the past. This allows you to backtest this strategy using past prices.
It also makes sure that the linear regression channel is useless for the cryptocurrency market :)
Strategy
The limit order to open a long position is on the bottom line (lime color). Limit order to open a short position is on the top line (red). All positions are closed by a limit order when the central line of the channel is crossed (blue). A limit order is also used to close positions.
For
Do not use in the cryptocurrency market.
Script de código aberto
No verdadeiro espirito do TradingView, o autor desse script o publicou como código aberto, para que os traders possam entendê-lo e verificá-lo. Parabéns ao autor Você pode usá-lo gratuitamente, mas a reutilização desse código em publicações e regida pelas Regras da Casa.
Para acesso rápido no gráfico, adicione esse script para seus favoritos — saiba mais aqui.
Aviso legal
As informações e publicações não devem ser e não constituem conselhos ou recomendações financeiras, de investimento, de negociação ou de qualquer outro tipo, fornecidas ou endossadas pela TradingView. Leia mais em Termos de uso.
Script de código aberto
No verdadeiro espirito do TradingView, o autor desse script o publicou como código aberto, para que os traders possam entendê-lo e verificá-lo. Parabéns ao autor Você pode usá-lo gratuitamente, mas a reutilização desse código em publicações e regida pelas Regras da Casa.
Para acesso rápido no gráfico, adicione esse script para seus favoritos — saiba mais aqui.
Aviso legal
As informações e publicações não devem ser e não constituem conselhos ou recomendações financeiras, de investimento, de negociação ou de qualquer outro tipo, fornecidas ou endossadas pela TradingView. Leia mais em Termos de uso.