VWAP Donchian screener does not work
Forums › ProRealTime English forum › ProScreener support › VWAP Donchian screener does not work
- This topic has 8 replies, 5 voices, and was last updated 4 years ago by robertogozzi.
-
-
03/20/2020 at 1:56 PM #122716
Hi.
A few weeks ago I created a stock screener on the daily close which screens for candles (D1) which are crossing the 20 days high (upper Donchian channel) or/and the VWAP. Somehow this simple screener doesn’t seemed to work. The stocks which are selected by the screener are a day (candle) too late. I don’t use the [1] condition anywhere in the screener. Can anybody help me out?
The code below is what I have done so far.
Donchian VWAP screener12345678910111213141516171819//Crossover HIGH or VWAP//09/03/2020//Marcel van Vlietd=20vw = volume*closevwsum = SUMMATION[d](vw)volsum = SUMMATION[d](volume)VWAP = vwsum/volsumUpper = HIGHEST[20](HIGH)C1 = average[50]<VWAPC2 = low<VWAP and close>VWAPC3 = volume>average[20](volume)C4 = average[50]<UpperC5 = low<Upper and close>Upperscreener [(C1 and C2 and C3) or (C3 and C4 and C5)]03/20/2020 at 2:36 PM #12272112345678910111213141516171819202122232425262728293031323334//Crossover HIGH or VWAP//09/03/2020//Marcel van Vlietd=20vw = volume*closevwsum = SUMMATION[d](vw)volsum = SUMMATION[d](volume)VWAP = vwsum/volsumUpper = HIGHEST[20](HIGH)C1 = average[50]<VWAPC2 = low<VWAP and close>VWAPC3 = volume>average[20](volume)C4 = average[50]<UpperC5 = low<Upper and close>Upperlong=0short=0if C1 and C2 and C3 thenlong=1endifif C3 and C4 and C5 thenshort=1endifsignal=0if long=1 thensignal=1endifif short=1 thensignal=-1endif// code proscreener d'exempleSCREENER[long or short](signal as "SIGNAL")Tested in h1 it works.
1 user thanked author for this post.
03/20/2020 at 2:41 PM #12272303/21/2020 at 4:13 PM #122841Hi Nicolas,
For this strategy I do not have acces to real-time data of US stocks, but I do have acces with the premium V11 version to real-time data of European stocks. The screener gives the same results with European stocks. Do I have to create two different screeners for each continent of stocks, or is there another way to make the screener work? This is a daily strategy so I don’t need real-time data for trading this strategy.
03/21/2020 at 4:18 PM #122844Merci beaucoup!
03/23/2020 at 9:23 AM #12297103/23/2020 at 11:44 AM #122992Could you provide an example of a late signal because I can’t find any.
At this time this is correct. Stock prices are trading way under the VWAP.
04/11/2020 at 1:01 AM #125650It’s 1 day late if you scan stocks with an “end of day” account.
What is the logic of this?
I renders eod scans quite useless if this is correct?
04/11/2020 at 1:10 AM #125652Why useless?
Free eod access lets you use the platform for testing until you feel comfortable with it, so that you may sometime upgrade your subscription, it’s not intended for trading purposes.
-
AuthorPosts
Find exclusive trading pro-tools on