=> This approach is useful when you understand the indicator’s logic but want to use Pine Script’s built-in functions instead of manually recreating the entire calculation.
So that’s how you can create your own VWAP using Pine Script’s built-in function.