Please help me with the below code. Its giving me error in every thing.

What i am looking is a VWAP with upper and lower bands. (Exactly as it shows in Trading View).

```
_SECTION_BEGIN("VWAP");
// VWAP Indicator with Bands using HLC3, anchored to a specific period (session), and considering gaps
// Define the length of the period (in this case, it's the NYSE session)
SessionStart = 0930;
SessionEnd = 1600;
// Define the number of standard deviations for the upper and lower bands
NumStdDevs = 2;
// Define the time frame for the chart
TimeFrame = Interval(TimeframeGetBuiltIn);
// Check if current bar falls within the defined period
if (TimeNum() >= SessionStart AND TimeNum() <= SessionEnd) {
// Calculate VWAP for the current bar
Vwap = (H+L+C)/3 * Volume;
// Sum up the volume and VWAP values
SumVolume = SumVolume + Volume;
SumVwap = SumVwap + Vwap;
// Check for gaps in the price data
if (C > Ref(C, -1)) {
// Update the sum of the closing prices for up days
SumUpClose = SumUpClose + C;
NumUpClose = NumUpClose + 1;
} else if (C < Ref(C, -1)) {
// Update the sum of the closing prices for down days
SumDownClose = SumDownClose + C;
NumDownClose = NumDownClose + 1;
}
} else {
// Reset the sum of volume and VWAP values if bar is outside the defined period
SumVolume = 0;
SumVwap = 0;
SumUpClose = 0;
NumUpClose = 0;
SumDownClose = 0;
NumDownClose = 0;
}
// Calculate the final VWAP value
Vwap = SumVwap / SumVolume;
// Calculate the average closing price for up days
AvgUpClose = SumUpClose / NumUpClose;
// Calculate the average closing price for down days
AvgDownClose = SumDownClose / NumDownClose;
// Calculate the standard deviation of the closing prices for up and down days
StdDevUpClose = StdDev(C, NumUpClose, SumUpClose/NumUpClose);
StdDevDownClose = StdDev(C, NumDownClose, SumDownClose/NumDownClose);
// Plot the VWAP on the chart
Plot(Vwap, "VWAP", colorGreen);
// Plot the upper bands
Plot(Vwap + NumStdDevs * StdDevUpClose, "Upper Band 1", colorRed);
Plot(Vwap + 2 * NumStdDevs * StdDevUpClose, "Upper Band 2", colorRed);
Plot(Vwap + 3 * NumStdDevs * StdDevUpClose, "Upper Band 3", colorRed);
Plot(Vwap + 4 * NumStdDevs * StdDevUpClose, "Upper Band 4", colorRed);
// Plot the lower bands
Plot(Vwap - NumStdDevs * StdDevClose, "Lower Band 1", colorRed);
Plot(Vwap - 2 * NumStdDevs * StdDevClose, "Lower Band 2", colorRed);
Plot(Vwap - 3 * NumStdDevs * StdDevClose, "Lower Band 3", colorRed);
Plot(Vwap - 4 * NumStdDevs * StdDevClose, "Lower Band 4", colorRed);
_SECTION_END();
```