• Produk
  • Komuniti
  • Pasaran
  • Broker
  • Lebih
Mulakan
  • Komuniti
  • /Penunjuk dan strategi
  • /Intracommodity

Intracommodity

two_leg_spread_returns_zscoreThis script helps assess the relative returns of each leg in a two-legged spread. It shows the z-score of each period's returns, along with a moving average of the difference between the two returns. A negative moving average implies that the second leg is strengthening, on a relative return basis, against the first leg, and vice versa. The inputs are: - timeframe: the timeframe for the calculations. the default is five minutes. - leg1_sym: the symbol for the first leg - leg2_sym: the symbol for the second leg - ma_length: the length of the moving average. by default it is 48, or the previous four hours, given the default timeframe. The default symbols are RB and HO, simply as an example of an intercommodity spread.
Penunjuk Pine Script®
oleh taylor_o
Telah dikemas kini
44

Pilih data pasaran disediakan oleh perkhidmatan Data ICE. Pilih data rujukan disediakan oleh FactSet. Copyright © 2025 FactSet Research Systems Inc.© 2025 TradingView, Inc.

Bukan sekadar produk
  • Carta Super
Penyaring
  • Saham
  • ETF
  • Bon
  • Syiling kripto
  • Pasangan Kripto
  • Pasangan CEX
  • Pasangan DEX
  • Pine
Peta Suhu
  • Saham
  • ETF
  • Kripto
Kalendar
  • Ekonomi
  • Perolehan
  • Dividen
Lebih produk
  • Keluk hasil
  • Opsyen
  • Aliran Berita
  • Pine Script®
  • Sparks
Aplikasi
  • Mudah alih
  • Atas meja
Alatan & langganan
  • Ciri
  • Penentuan Harga
  • Data pasaran
Tawaran istimewa
  • Hadapan CME Group
  • Hadapan Eurex
  • Himpunan saham AS
Mengenai syarikat
  • Siapa kami
  • Manifesto
  • Atlet
  • Blog
  • Kerjaya
  • Kit media
Barangan
  • Kedai TradingView
  • Kad tarot untuk pedagang
Polisi & keselamatan
  • Terma Penggunaan
  • Penafian
  • Dasar Privasi
  • Polisi Kuki
  • Kenyataan Kebolehcapaian
  • Kerentanan keselamatan
  • Halaman Status
Komuniti
  • Rangkaian sosial
  • Dinding Kasih
  • Rujuk rakan
  • Peraturan Dalaman
  • Moderator
Idea
  • Dagangan
  • Pendidikan
  • Pilihan Editor
Skrip Pine
  • Penunjuk & strategi
  • Pakar
  • Freelancer
Penyelesaian perniagaan
  • Widget
  • Perpustakaan pencartaan
  • Lightweight Charts™
  • Carta Termaju
  • Platform Dagangan
Peluang pertumbuhan
  • Pengiklanan
  • Integrasi brokeraj
  • Program rakan kongsi
  • Program pendidikan
Look FirstLook First