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 open-source
In pieno spirito TradingView, il creatore di questo script lo ha reso open-source, in modo che i trader possano esaminarlo e verificarne la funzionalità. Complimenti all'autore! Sebbene sia possibile utilizzarlo gratuitamente, ricorda che la ripubblicazione del codice è soggetta al nostro Regolamento.
Declinazione di responsabilità
Le informazioni ed i contenuti pubblicati non costituiscono in alcun modo una sollecitazione ad investire o ad operare nei mercati finanziari. Non sono inoltre fornite o supportate da TradingView. Maggiori dettagli nelle Condizioni d'uso.
Script open-source
In pieno spirito TradingView, il creatore di questo script lo ha reso open-source, in modo che i trader possano esaminarlo e verificarne la funzionalità. Complimenti all'autore! Sebbene sia possibile utilizzarlo gratuitamente, ricorda che la ripubblicazione del codice è soggetta al nostro Regolamento.
Declinazione di responsabilità
Le informazioni ed i contenuti pubblicati non costituiscono in alcun modo una sollecitazione ad investire o ad operare nei mercati finanziari. Non sono inoltre fornite o supportate da TradingView. Maggiori dettagli nelle Condizioni d'uso.