OPEN-SOURCE SCRIPT
R2D2 v1.0

Скрипт для парного трейдинга.
Можно анализировать дельту между 2 инструментами.
Гистограмма показывает силу расхождения между ними.
Добавлен коэффициент умножения для каждого тикера, что бы выравнять баланс между инструментами.
Можно работать на любом ТФ. Не забывайте, что данный скрипт работает на МА, поэтому при выборе больших числовых значений возможно запаздывание.
______________
Script for pair trading.
You can analyze the Delta between 2 tools.
The histogram shows the strength of the discrepancy between them.
Added a multiplication factor for each Ticker to even out the balance between instruments.
You can work on any TF. Do not forget that this script works on MA, so when selecting large numeric values, there may be a delay.
Можно анализировать дельту между 2 инструментами.
Гистограмма показывает силу расхождения между ними.
Добавлен коэффициент умножения для каждого тикера, что бы выравнять баланс между инструментами.
Можно работать на любом ТФ. Не забывайте, что данный скрипт работает на МА, поэтому при выборе больших числовых значений возможно запаздывание.
______________
Script for pair trading.
You can analyze the Delta between 2 tools.
The histogram shows the strength of the discrepancy between them.
Added a multiplication factor for each Ticker to even out the balance between instruments.
You can work on any TF. Do not forget that this script works on MA, so when selecting large numeric values, there may be a delay.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
For quick access on a chart, add this script to your favorites — learn more here.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
For quick access on a chart, add this script to your favorites — learn more here.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.