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

Outperform

BTC outperform atrategy### Code Description This Pine Script™ code implements a simple trading strategy based on the relative prices of Bitcoin (BTC) on a weekly and a three-month basis. The script plots the weekly and three-month closing prices of Bitcoin on the chart and generates trading signals based on the comparison of these prices. The code can also be applied to Ethereum (ETH) with similar effectiveness. ### Explanation 1. **Inputs and Variables**: - The user selects the trading symbol (default is "BINANCE:BTCUSDT"). - `weeklyPrice` retrieves the closing price of the selected symbol on a weekly interval. - `monthlyPrice` retrieves the closing price of the selected symbol on a three-month interval. 2. **Plotting Data**: - The weekly price is plotted in blue. - The three-month price is plotted in red. 3. **Trading Conditions**: - A long position is suggested if the weekly price is greater than the three-month price. - A short position is suggested if the three-month price is greater than the weekly price. 4. **Strategy Execution**: - If the long condition is met, the strategy enters a long position. - If the short condition is met, the strategy enters a short position. This script works equally well for Ethereum (ETH) by changing the symbol input to "BINANCE:ETHUSDT" or any other desired Ethereum trading pair.
Strategi Pine Script®
oleh witus9719
22

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