I have several screeners running around stocks crossing the VWAP indicator intraday, but I have always noticed some false results.
Now that I’m looking closer, I see there is a discrepency between the VWAP indicator built in the platform, and the VWAP code I use in my screeners, since apparently I can not call the built-in indicator.
So in my screener, I calculate the VWAP as followed:
Also if you read the description of the built in VWAP you will see that it is calculated using tick by tick data whereas yours is calculated using minute chart data. This is the most likely reason for the differing values.
Also bear in mind that when using the calculation in a screener that a screener can only use 254 bars and there are possibly 1440 bars in a day on a minute chart so this might give you incorrect screener results.
Thx you very much Vonasi, always here to help. your remark about “d” is already reducing strongly the shift, and the rest is indeed a matter of timeframe (I had already noticed it). For guys trading stocks, VWAP is the most important indicator, with lot of continuation bets that can be taken once the price has found support/resistance on it.
To help us continually offer you the best experience on ProRealCode, we use cookies. By clicking on "Continue" you are agreeing to our use of them. You can also check our "privacy policy" page for more information.Continue