IvanLabrie

Pair trader

I figured I'd post this.
It's an indicator that plots the spread between two selectable instruments and also each individual instrument's line chart, with a colored fill to make it more clear visually when trading ratios.
In cointegrated pairs like audcad-0.50% , you can trade the range extremes, and buy the laggard/sell the leader when overbought/sold conditions are met + distance from the 66/253 EMAs, as outlined in my AUDCAD-0.50% post. (see related ideas)
Hope you find it useful!
Cheers,
Ivan.

🔒Want to dive deeper? Check out my paid services below🔒

ivanlabrie.substack.com/
オープンソーススクリプト

TradingViewの精神に則り、このスクリプトの作者は、トレーダーが理解し検証できるようにオープンソースで公開しています。作者に敬意を表します!無料で使用することができますが、このコードを投稿で再利用するには、ハウスルールに準拠する必要があります。 お気に入りに登録してチャート上でご利用頂けます。

免責事項

これらの情報および投稿は、TradingViewが提供または保証する金融、投資、取引、またはその他の種類のアドバイスや推奨を意図したものではなく、またそのようなものでもありません。詳しくは利用規約をご覧ください。

チャートでこのスクリプトを利用したいですか?
study("Pair trader", overlay=true)
Pair1 = security((input("FX_IDC:audusd")), input("D"), hl2)
Pair2 = security((input("FX_IDC:nzdusd")), input("D"), hl2)
PairA = plot(Pair1, color=yellow)
PairB = plot(Pair2, color=black)
fill(PairA, PairB, white, 80, "Spread")
Spread = Pair1 - Pair2
plotarrow(Spread, colorup=teal, colordown=orange, transp=80)