How do I plot a new series of candles based on script calculations?

To plot a new series of bars or candles, where OHLC values are based on your calculations, use plotcandle() or plotbar() functions. After adding them to the chart, a script with such functions will plot a series of bars or a series of candles with specified parameters. For example, this script will plot a series of red and green candles with OHLC values twice as much, when compared to values of the main series. 

//@version=3
study("My Script")
plotcandle(open*2, high*2, low*2, close*2, title='Title', color = open < close ? green : red, wickcolor=black)
Laman Utama Penyaring Saham Penyaring Forex Penyaring Kripto Kalendar Ekonomi Bagaimana ia berfungsi Ciri-ciri Carta Harga Rujuk rakan Peraturan Dalaman Pusat Bantuan Laman web dan Penyelesaian Broker Widget Penyelesaian Pencartaan Perpustakaan Pencartaan yang Ringan Blog & Berita Twitter
Profil Tetapan Profil Akaun dan Pengebilan Kawan-kawan yang dirujuk Coin Tiket Sokongan Saya Pusat Bantuan Idea yang diterbitkan Pengikut Mengikuti Mesej Peribadi Sembang Daftar Keluar