Volume weighted average price, or VWAP, is the average value of a stock traded over a period of time. Normally the indicator is calculated over a single day in an intraday chart and is used by traders to execute a trade when volume is high in order to minimize the effect on the market.
You can easily create a VWAP indicator in NeuroShell Trader using the Indicator Wizard.
Divide: Cumulative Sum (Volume * Price) by the Cumulative Sum (Volume)
The Divide indicator belongs to the Arithmetic category and the Cumulative Sum indicator comes from the Basic category.
Make sure both Cumulative Sum indicators start with an initial value of 0 and be sure not to optimize this value. You also need to check the option "Don't calculate indicators across day boundaries". (This option is only available for indicators created with intraday bars.)
|
|
|
The numerator for the VWAP indicator is displayed above. Note that we checked the box "Don't Calculate Indicator(s) across day boundaries" in order for the VWAP indicator to refresh at the beginning of each trading day.
|
Since the VWAP indicator includes volume twice in the calculation, there's a technique you can use to simplify indicators when you save them as custom indicators. If your indicators also include copies of the same parameters this tip will save optimization time.
When you click on the button to save an Indicator, the screen displays an button labeled Advanced. If you click on this button, you see the screen below which lists the parameters included in both indicators. Note that there are two indicators labeled as "Volume", one for parameter 1 and the other for parameter 4. If you click on the one for parameter 4 and click on the drop down box for "Display as Parameter Number" and change the parameter to 1. When the indicator is displayed on the chart volume will only be listed once.
Initial value appears twice in the list, but since you always want this value to be 0 so the indicator starts fresh every day, click on the option "Hidden from user" and the parameter will not be listed when you insert the indicator on a chart and it will not be optimized.