Unable to figure out what caps Highest[255] function. TinyInt?
Forums › ProRealTime English forum › ProScreener support › Unable to figure out what caps Highest[255] function. TinyInt?
- This topic has 3 replies, 2 voices, and was last updated 7 years ago by Nicolas.
-
-
03/21/2017 at 3:50 PM #29305
Hello!
First of all i’d like to say i have little to none, experience in stock, nor PRT.
The problem i’m facing is with the Highest[DaysToLookBackUpon]. Once i try to use it with over 255, one byte in size i am unable to get results, nor do i get an error.
Why is that, is there some unwritten rules, crappy tinyInt hiding, or am i using it wrong?Any input would be appricated.
The idea was to search for peaks last days, compared to a larger amount of backdays. That would sort out some items, which with fundamental information might be a good short etc.1234567891011121314151617181920DaysToLookBackUpon = 255 // seams like this cannot hold more than 255 days (variable error? tinyint??!)MaxAmountOfDaysSincePeak = 10CheckIfDeclineHasBegun = 1 // Change this to skip checking if last days has been worst than those beforeDaysToCompareDeclineTo = 20DecliningDays = 5condition1 = ( Highest[DaysToLookBackUpon](close) = Highest[MaxAmountOfDaysSincePeak](close))//Check if first days(close) is less than last days(close), to view if peak has peaked.if CheckIfDeclineHasBegun = 1 thencondition2 = ( Highest[DaysToCompareDeclineTo](close[DecliningDays]) < Highest[DecliningDays](close[0]))elsecondition2 = 1endifFilterOutJunk = (average[100](volume) > 150000)SCREENER[condition1 AND condition2 AND FilterOutJunk](average[15](close)-close as "close")03/21/2017 at 4:08 PM #2931703/21/2017 at 4:42 PM #29322I see, then i know the reason, Thanks!
On another matter, how do i make a lasting variable, over several days, Ie lets say i want to return the 10 highest Points, over 254 days. Along with Close, and barindex, or way to figure out which day.
Each loop i’d like to evaluate and stick into list, array if it matches conditions, etc. But i am unable to make such allocations, they always reset.// David
03/21/2017 at 5:22 PM #29333 -
AuthorPosts