• Prodotti
  • Comunità
  • Mercati
  • Broker
  • Altro
Inizia
  • Indicatori e strategie
  • /Pinescript

Pinescript

Simple Strategy Code StubThis is a very basic strategy implementation Use as a code stub for your strategy code. I wrote it because I could not find one. This particular strategy goes long on Tuesdays at 10 am and goes short at 3 pm on Thursdays. Because US markets open at 9:30 you have to have your chart in 30 minute or less resolution for trades to fire. You can gut that code and replace it with your own to start testing your own indicators and strategies. If you build a strategy that doesn't use "hour" like I have this resolution requirement won't apply. For giggles, compare its performance to other strategies. Weird, huh? About 53% effective on most equities and indexes. This strategy does the minimum needed to get a strategy working and uses default position sizes and buys at market with no stops. Again, it is the minimal code stub needed to test an indicator/rule based strategy. A great code reference for building more sophisticated strategies can be found here => The code is written by @greatwolf and is very well structured for anyone looking to fully utilize strategy features for position sizing, limit orders, stops and cancellations.
Strategia Pine Script®
di codypd
1122
…999999

Dati di mercato selezionati forniti da ICE Data Services. Dati di riferimento selezionati forniti da FactSet. Copyright © 2025 FactSet Research Systems Inc.Copyright © 2025, American Bankers Association. Database CUSIP fornito da FactSet Research Systems Inc. Tutti i diritti riservati. Documenti depositati presso la SEC e altri documenti forniti da Quartr.© 2025 TradingView, Inc.

Più che un semplice prodotto
  • Grafici
Screener
  • Azioni
  • ETF
  • Obbligazioni
  • Singole cripto
  • Coppie CEX
  • Coppie DEX
  • Pine
Heatmap
  • Azioni
  • ETF
  • Cripto
Calendari
  • Economico
  • Utili
  • Dividendi
Altri prodotti
  • Curve di rendimento
  • Opzioni
  • Notiziario
  • Pine Script®
Applicazioni
  • Smartphone
  • Desktop
Comunità
  • Social network
  • Muro social
  • Invita un amico
  • Regolamento
  • Moderatori
Idee
  • Trading
  • Formazione
  • Selezione editoriale
Pine Script
  • Indicatori e strategie
  • Maestri
  • Freelancer
Strumenti e abbonamenti
  • Caratteristiche
  • Costi
  • Dati di mercato
  • Regala abbonamenti
Trading
  • Panoramica
  • Broker
Offerte speciali
  • Futures CME Group
  • Futures Eurex
  • Bundle azioni USA
Informazioni sulla società
  • Chi siamo
  • Missione spaziale
  • Blog
  • Carriere
  • Kit multimediale
Merchandising
  • TradingView Shop
  • I tarocchi per i trader
  • C63 TradeTime
Politiche e sicurezza
  • Condizioni d'uso
  • Declinazione di responsabilità
  • Normativa sulla privacy
  • Politica sui cookies
  • Dichiarazione di accessibilità
  • Consigli per la sicurezza
  • Programma bug bounty
  • Pagina di stato
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
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