# Session VWAP and Profile

> Session VWAP and Profile is an indicator drawn over the price chart.

Source: https://algobarsx.com/docs/ex-16-session-vwap-profile/

```algobarsx
indicator "Session VWAP and Profile"
    pane: price

input rows = 24
input value_area = 70%

session_vwap = vwap(anchor: "session")
upper_band = session_vwap + stdev(close, 20)
lower_band = session_vwap - stdev(close, 20)

plot session_vwap as vwap_line, color: purple, width: 2
plot upper_band, color: purple.fade(60), style: step
plot lower_band, color: purple.fade(60), style: step
fill upper_band, lower_band, color: purple.fade(92)
profile rows: rows, range: session, side: right, value_area: value_area
```
What this script says

Session VWAP and Profile is an indicator drawn over the price chart.

You can change 2 inputs: `rows` (default 24) and `value_area` (default 70%).

It calculates `session_vwap` as VWAP, `upper_band` as `session_vwap` plus the 20-bar standard deviation of the close and `lower_band` as `session_vwap` minus the 20-bar standard deviation of the close.

On the chart, it plots `session_vwap` as `vwap_line`, plots `upper_band` and `lower_band`, shades between `upper_band` and `lower_band` and draws a volume profile.
