• Prodotti
  • Comunità
  • Mercati
  • Broker
  • Altro
Inizia
  • Comunità
  • /Indicatori e strategie
  • /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.
Strategia Pine Script®
di witus9719
22

Dati di mercato forniti da ICE Data services. Dati di riferimento forniti da FactSet. Copyright © 2025 FactSet Research Systems Inc.© 2025 TradingView, Inc.

Più che un semplice prodotto
  • Grafici
Screener
  • Azioni
  • ETF
  • Obbligazioni
  • Singole cripto
  • Coppie Cripto
  • Coppie CEX
  • Coppie DEX
  • Pine
Heatmap
  • Azioni
  • ETF
  • Cripto
Calendari
  • Economico
  • Utili
  • Dividendi
Altri prodotti
  • Curve di rendimento
  • Opzioni
  • Notiziario
  • Pine Script®
  • Spunti
Applicazioni
  • Smartphone
  • Desktop
Strumenti e abbonamenti
  • Caratteristiche
  • Costi
  • Dati di mercato
Offerte speciali
  • Futures CME Group
  • Futures Eurex
  • Bundle azioni USA
Informazioni sulla società
  • Chi siamo
  • Manifesto
  • Atleti
  • Blog
  • Carriere
  • Kit multimediale
Merchandising
  • TradingView Shop
  • I tarocchi per i trader
Politiche e sicurezza
  • Condizioni d'uso
  • Declinazione di responsabilità
  • Normativa sulla privacy
  • Politica sui cookies
  • Dichiarazione di accessibilità
  • Rischi per la sicurezza
  • Pagina di stato
Comunità
  • Social network
  • Muro social
  • Invita un amico
  • Regolamento
  • Moderatori
Idee
  • Trading
  • Formazione
  • Selezione editoriale
Pine Script
  • Indicatori e strategie
  • Maestri
  • Freelancer
Soluzioni per le aziende
  • Widget
  • Librerie grafiche
  • Lightweight Charts™
  • Grafici avanzati
  • Piattaforma di trading
Opportunità di crescita
  • Pubblicità
  • Integrazione broker
  • Programma affiliazione
  • Programma di formazione
Look FirstLook First