Weekly Pivot screener
Forums › ProRealTime English forum › ProScreener support › Weekly Pivot screener
- This topic has 5 replies, 2 voices, and was last updated 4 years ago by robertogozzi. 
- 
	
		
- 
		
			
				
01/28/2021 at 6:33 PM #159712Hello I’m tying to screen for example the daily open below the weekly pivot and the daily close above the weekly pivot point. This seems straightforward but doesn’t seem to work. Can anybody advise how I’ve got this wrong? Many thanks Pete 01/28/2021 at 7:29 PM #159718If you post your code we might help you spot what’s wrong. 01/28/2021 at 7:59 PM #159724123456ignored, ignored, ignored, ignored, ignored, ignored, indicator1, ignored, ignored, ignored, ignored, ignored, ignored = CALL "Weekly Pivot Points"c1 = (open < indicator1)c2 = (close > indicator1)SCREENER[c1 AND c2] (Variation AS "%Chg prev bar")Thanks Roberto, I’ve tried using a weekly pivot point indicator that was developed by a contributor on prorealcode (see attached code) but this has not worked in the screener. 01/28/2021 at 8:01 PM #159725Also using the prorealtime in built pivot point indicator seems to default to the daily pivot point code, even though its using the weekly option on the timeframe drop down menu 123indicator1 = (DHigh(1) + DLow(1) + DClose(1))/3c1 = (open < indicator1)c2 = (close > indicator1)01/29/2021 at 10:51 AM #159779Ok I’ve made some progress, this seems to be working (my thanks to the original contributor who shared the weekly pivots point indicator on prorealcode): 12345678910111213141516171819IF DAYOFWEEK < DAYOFWEEK[1] THENweekhigh = prevweekhighweeklow = prevweeklowweekclose = prevweekcloseprevweekhigh = HIGHprevweeklow = LOWENDIFprevweekhigh = MAX(prevweekhigh, HIGH)prevweeklow = MIN(prevweeklow, LOW)prevweekclose = CLOSE// Point pivot : P = (Hveille + Bveille + Cveille) / 3PP = (weekhigh + weeklow + weekclose)/3c1 = Open < PPc2 = Close > ppSCREENER[c1 AND c2] (Volume)1 user thanked author for this post.01/29/2021 at 12:56 PM #159819That’s good news! And congratulations for your determination! 
- 
		AuthorPosts
			Find exclusive trading pro-tools on 


 
  
		 
		 
		