e.g.
$1000
$1.000K
$123.000K
$1.000M
.... etc.
I'm especially interested in showing that value for the bar the cursor is focused on. Any help is much appreciated. And thanks.
Code: Select all
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// © PorkkChop
//@version=4
study("Average Bar Price & Volume $")
BTCpriceInUSD = security("BINANCE:BTCUSD", "", close)
averagePrice = ((abs((high + low)/2))*BTCpriceInUSD)
plot(averagePrice, title = 'Av Price $')
totalVolume = volume * averagePrice
//totalVolumeString = tostring(totalVolume, '#,#,#.###')
plot (totalVolume, linewidth=2, color=color.red, title = 'Volume $')