Scan on specific date
Forums › ProRealTime English forum › ProScreener support › Scan on specific date
- This topic has 10 replies, 3 voices, and was last updated 5 years ago by Vonasi.
Tagged: date
-
-
02/09/2019 at 3:46 PM #90936
Hi,
I have put in a code for the proscreener that gives live data, or results for end of day scan.
Am I able to specify the scan to stop at a certain date and see scan results for previous days?
02/11/2019 at 12:18 PM #91036Yes of course, you can base your conditions with any of the date&time instructions: https://www.prorealcode.com/documentation/category/dateandtime/
02/11/2019 at 2:04 PM #91058Thank you for there reply. Sorry I am very new to coding and keep getting syntax error adding the date.
I want to add Date[N] to this scan
12345ONCE Periods = 20 //last 20 barsONCE PerCent = Periods * 0.9 //90% of times on the riseONCE RsiNum = 14MyRsi = rsi[RsiNum](close)SCREENER[summation[Periods](MyRsi > MyRsi[1]) >= PerCent]How would I do this?
02/11/2019 at 5:18 PM #9108102/11/2019 at 6:46 PM #91091Yes I would like to search by date, all stocks that had RSI rising for 20 periods 90% of the time.
Basically scan for January 6th for example which stocks met this condition at the end of day
Are you able to add a “search by date” code within the scan?
02/13/2019 at 3:10 PM #91300I think that it would work correctly with the below code:
12345678910111213ONCE Periods = 20 //last 20 barsONCE PerCent = Periods * 0.9 //90% of times on the riseONCE RsiNum = 14MyRsi = rsi[RsiNum](close)idate = 20190106if summation[Periods](MyRsi > MyRsi[1]) >= PerCent and date=idate thentest=1endifSCREENER[test]Change “idate” with the date of your choice in YYYYMMDD format.
02/15/2019 at 2:21 PM #91461I think that it would work correctly with the below code:
12345678910111213ONCE Periods = 20 //last 20 barsONCE PerCent = Periods * 0.9 //90% of times on the riseONCE RsiNum = 14MyRsi = rsi[RsiNum](close)idate = 20190106if summation[Periods](MyRsi > MyRsi[1]) >= PerCent and date=idate thentest=1endifSCREENER[test]Change “idate” with the date of your choice in YYYYMMDD format.
Yes that’s perfect! Thank you so much!
02/16/2019 at 10:32 AM #91511I think that it would work correctly with the below code:
12345678910111213ONCE Periods = 20 //last 20 barsONCE PerCent = Periods * 0.9 //90% of times on the riseONCE RsiNum = 14MyRsi = rsi[RsiNum](close)idate = 20190106if summation[Periods](MyRsi > MyRsi[1]) >= PerCent and date=idate thentest=1endifSCREENER[test]Change “idate” with the date of your choice in YYYYMMDD format.
Nicolas one last thing, are you able to add a volume parameter in this code?
Such that I can input a minimum volume number to filter out the low volume stocks?
02/18/2019 at 11:06 AM #91618Sure, here it is: (adjust the minVolume setting, default is set to 1M)
12345678910111213ONCE Periods = 20 //last 20 barsONCE PerCent = Periods * 0.9 //90% of times on the riseONCE RsiNum = 14MyRsi = rsi[RsiNum](close)idate = 20190106minVolume = 1000000if summation[Periods](MyRsi > MyRsi[1]) >= PerCent and date=idate and volume>minVolume thentest=1endifSCREENER[test]1 user thanked author for this post.
02/18/2019 at 11:38 AM #91621Sure, here it is: (adjust the minVolume setting, default is set to 1M)
12345678910111213ONCE Periods = 20 //last 20 barsONCE PerCent = Periods * 0.9 //90% of times on the riseONCE RsiNum = 14MyRsi = rsi[RsiNum](close)idate = 20190106minVolume = 1000000if summation[Periods](MyRsi > MyRsi[1]) >= PerCent and date=idate and volume>minVolume thentest=1endifSCREENER[test]Great, thanks so much Nicolas
02/18/2019 at 2:29 PM #91642prevailution – please don’t hit the ‘Quote’ button for every reply – especially if there is code in the post that you are quoting! Quoting is only necessary if you want to highlight one particular part of someone’s reply that you are responding to or if there are several people in a conversation and you want to show exactly who you are answering. Do this by highlighting the section of interest and then click on ‘Quote’. It is rarely necessary to quote someone’s whole post including their own code back to them – especially in a conversation between only two people! 🙂
-
AuthorPosts
Find exclusive trading pro-tools on