Pine-script. Programming language for trader

in #pine-script3 years ago

Pine Script is a (relatively simple) programming language created by TradingView and is specifically designed for trading or market charts. To use it you need to have an account on TradingView, even with the free account since the programming language is by no means limited. The limitations are on the number of "indicators" we can apply to the charts.

What does Pine Script do?
We can optimize strategies, create new indicators, create a trading bot or improve the analysis on the chart. The possibilities are essentially endless and depend on your skill and intuition. In any case, there are many traders who share their works in Pine Script, so it will also be possible to use those made by third parties and then modify them where we do not like a certain function, or simply want to add new ones.

How do you access the script?
From the main interface of the iterative charts (Charts menu on the home page), or by choosing a chart of any asset, at the bottom we will have a section like this:

Pressing on the "tab" Editor Pine it "lifts" from the bottom revealing the editor itself.

As you can see on the header bar, on the right, there are commands including the one that allows us to add our programming to the graph.

In the central body appears the Pine Script code which is colored and numbered like a real editor. From here it is also possible to save our codes and then retrieve them later.

The advantages can be summarized as follows:

The code is easy to read
The code is easy to maintain
The code does not need a server, everything is saved in our Trading View account
The code is portable (i.e. usable) on any operating system with a browser
The code operates in real time, but also on past data

Link: Tradingview
Link: Pine Script

ItalianStripe2.png
Pine Script è un linguaggio di programmazione (relativamente semplice) creato da TradingView ed è specificatamente pensato per il trading o comunque i grafici di mercato. Per utilizzarlo è necessario avere un account su TradingView, anche con l’account gratuito poiché il linguaggio di programmazione non è assolutamente limitato. Le limitazioni sono sul numero di “indicatori” che possiamo applicare ai grafici.

Che cosa fa Pine Script?
Possiamo ottimizzare strategie, creare nuovi indicatori, creare un trading bot o migliorare le analisi sul grafico. Le possibilità sono sostanzialmente infinite e dipendono dalla vostra bravura e intuito. In ogni caso ci sono molti trader che condividono le proprie opere in Pine Script, per cui sarà anche possibile utilizzare quelle fatte da terzi per poi modificarle dove non ci piaccia una determinata funzione, o semplicemente vogliamo aggiungerne di nuove.

Come si accede allo script?
Dall’interfaccia principale dei grafici iterativi (menu Grafici nella home page), ovvero scegliendo un grafico di un asset qualsiasi, sul fondo avremo una sezione come questa:

Premendo sulla “tab” Editor Pine questa si “solleva” dal fondo rivelando l’editor medesimo.

Come si può vedere sulla barra di intestazione, sulla destra, sono presenti dei comandi tra cui quello che ci permette di aggiungere al grafico la nostra programmazione.

Nel corpo centrale appare il codice di Pine Script che è colorato e numerato come un vero e proprio editor. Da qui è anche possibile salvare i nostri codici per poi riprenderli successivamente.

I vantaggi sono riassumibili in:

Il codice è facile da leggere
Il codice è facile da mantenere
Il codice non necessita di un server, è salvato tutto nel nostro account di Trading View
Il codice è portabile (cioè utilizzabile) su qualsiasi sistema operativo dotato di browser
Il codice opera in tempo reale, ma anche sui dati del passato

Link: Tradingview
Link: Pine Script



visit tosolini.info website

Posted from my blog: https://blog.tosolini.info/