VWAP For NIFTY & BANKNIFTY [Zero54]
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// © zero54

//@version=5
indicator('Custom Vwap [Zero54]', overlay=true)
string i_maType = syminfo.tickerid
Symb = switch i_maType
	"NSE:BANKNIFTY" => "NSE:BANKNIFTY1!"
	"NSE:NIFTY" => "NSE:NIFTY1!"
	// Default used when the cases first cases do not match.
	=> syminfo.tickerid

vwapp2  = request.security(Symb, "", ta.vwap)
plot(vwapp2)