Time-dependent query: current candle is already at least 50% complete
Forums › ProRealTime English forum › ProScreener support › Time-dependent query: current candle is already at least 50% complete
- This topic has 4 replies, 3 voices, and was last updated 4 years ago by Nicolas.
Viewing 5 posts - 1 through 5 (of 5 total)
-
-
11/20/2019 at 6:46 PM #11324911/20/2019 at 8:08 PM #113257
If you mean 50% size… nobody knows what 100% will be.
If you mean 50% time (say after 15 minutes on a 30-minute TF), you can try using TIME, but I never tried and cannot test it now.
11/21/2019 at 10:19 AM #113289TIME does not work. I wrote this code to be applied to a 5-minute chart (to check a 10-minute chart), but it doesn’t return any result:
1234567TIMEFRAME(10 minute)myRSI = RSI[14](close)Flag = myRSI > 0TIMEFRAME(5 minute)MyTime = ((OpenMinute mod 5) = 0) AND ((OpenMinute mod 10) <> 0)TIMEFRAME(default)SCREENER[Flag > 0 AND MyTime = 1] (OpenMinute AS "Time")11/21/2019 at 11:48 AM #11331211/22/2019 at 11:48 AM #113407I’m testing this code:
123456789101112131415once NbBar = 1MyDay=daydayminutes = 1440*(MyDay-MyDay[1])MyHour=hourhourminutes = 60*(MyHour-MyHour[1])MyMin=minutebarminutes = MyMin - MyMin[1] + hourminutes + dayminutesbarminutes=abs(barminutes)Mybarminutes = lowest[NbBar](barminutes)[1]q = minute/mybarminutestest = round(q)-q<.5 and round(q)-q>0screener[test](minute/mybarminutes) -
AuthorPosts
Viewing 5 posts - 1 through 5 (of 5 total)