OPEN-SOURCE SCRIPT
Updated

Pair Trade

5 131
Pair trade with inputs:
* length of correlation and moving average
* trade pair
* spread threshold to enter long / short
* spread threshold to exit long / short
Release Notes
Better spread thresholds for BOVA11 / SMAL11.

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.