Is it possible to calculate VWAP using tradescript for Pi?

I understand the formula volume weighted average price(vwap), but am unable to code it. Has anyone of you tried it?

volume weighted average price is the summation of number of shares bought x share price divided by total shares bought and i think nothing to do with candle stick charts,

we use tradescript to apply conditions based on candlesticks so, it can not be coded by transcript , you have to calculate manually

1 Like

Not feasible on tradescript, but you may use Excel sheet for VWAP calculation. See the below link: