Build your own indicator
By the end of this tutorial you will have your own session VWAP with bands at 1 and 2 standard deviations, checked against real data, saved in your library and drawn on a chart in Charts. The upper band is the one the opening range study in Test your first trading idea splits its breaks by.
The agent writes the script, paid for with AI credits or your own AI subscription. You describe what you want and check what it draws.
Describe the indicator
Say what it calculates, when it resets and what it should look like. This is the description used here:
Build a session VWAP that resets at the New York session open, with bands at 1 and 2 standard deviations above and below. Draw VWAP as a solid line and the bands as thinner lines.
In the sidebar, open Tools → Indicators.
Click New at the top right. The page asks What do you want to build?
Type your description into the box and press Enter. Session VWAP with σ bands under Suggested indicators fills in a similar prompt if you would rather start from that.
Chartnaut creates the indicator and opens the builder: the agent's chat on the left, a preview on the right. The agent writes the script and applies each change as it goes. Each change appears in the chat as a card with a one-line summary, and opening the card shows the code.
Preview it on the chart
In the preview, open the Chart tab.
Check that VWAP starts fresh at the New York open and that both pairs of bands sit either side of it.
Use the arrows either side of the date to step through a few trading days, including a quiet one and a busy one.
The bands should be tight on a quiet day and wide on a busy one. If they are the same width every day, the standard deviation is not being calculated per session.
Fix it with the agent
When something looks wrong, tell the agent what you see and on which day. It edits the script and the chart redraws.
The VWAP carries on from yesterday instead of resetting at the New York open.
The 2 standard deviation bands are drawn in the same colour as the 1 standard deviation bands. Make them fainter.
Add a setting for the band multipliers so I can change them.
If the chart stays empty, the Errors tab shows what stopped the script, and the agent reads it too. The Logs tab shows anything the script prints.
Save it
Each working change the agent makes is saved to the indicator as a new version, so it is already in your library. If you edit the code yourself in the Code tab, save it when you are done.
Open Tools → Indicators and click the indicator to see it. The Versions tab lists every saved version, and Preview Settings shows the settings it exposes. To change it later, click Make a change and carry on with the agent.
Add it to a chart
Open Trading → Charts.
Click Indicator in the toolbar.
Under Library, choose Mine.
Click your session VWAP.
The indicator draws on the chart straight away. Indicators on the chart covers its settings, hiding it and removing it.
