In Pine Script, I wish to get PricewithMaxVolume and MaxVolumeAtPrice (with buyVolume and sellVolume details at that price) in a candle/bar for nifty and banknifty. Illustration is given below
sellVol | BuyVol | price |
---|---|---|
1500 | 100 | 24000.10 |
2000 | 300 | 24000.05 |
1500 | 1000 | 24000.00 |
From the above data, pricewithMaxVol is 24000 and MaxVolatPrice is 2500 (1500+1000). The data to fetch by coding is price : 24000, sellVol : 1500 and buyVol : 1000
No clue being a novice in pine script
0