konidtaly88

Spread Chart

This script lets you chart a spread of a maximum of 3 tickers (one of them being the ticker in the main chart).

Y axis is the currency amount of the spread, that is calculated by this formula:

Y = PnL = quantity * price * handleValue

Y is calculated for each ticker specified, and the sum of Ys obtained is plotted.

this way it is possible to view the PnL of the spread directly.

It is necessary to specify the handle value (point value) in the script inputs (not for the main chart ticker).

A table summarizes the spread configuration, containing all inputs.
Script open-source

Nello spirito di condivisione promosso da TradingView, l'autore (al quale vanno i nostri ringraziamenti) ha deciso di pubblicare questo script in modalità open-source, così che chiunque possa comprenderlo e testarlo. Puoi utilizzarlo gratuitamente, ma il riutilizzo del codice è subordinato al rispetto del Regolamento. Per aggiungerlo al grafico, mettilo tra i preferiti.

Declinazione di responsabilità

Le informazioni ed i contenuti pubblicati non costituiscono in alcun modo una sollecitazione ad investire o ad operare nei mercati finanziari. Non sono inoltre fornite o supportate da TradingView. Maggiori dettagli nelle Condizioni d'uso.

Vuoi usare questo script sui tuoi grafici?