Hi All,
I intend to scan if a previous 4 hour open price is greater than a pivot based on previous day's high/low. I plan to scan in a 4-hour aggregation period. The code that I made is as follows,
" def HD = high(period = aggregationperiod.Day)[1];
def LD = low ( period = aggregationperiod.day)[1];
def P1 = 0.5*(HD + LD );
plot scan = open[1]> P1; "
I know tos has a secondary aggregation problem, which tends to create uncertainty about whether my code will be properly executed or not. I am seeking advice on how I can make my criteria run accurately and without issue.
Thank you
I intend to scan if a previous 4 hour open price is greater than a pivot based on previous day's high/low. I plan to scan in a 4-hour aggregation period. The code that I made is as follows,
" def HD = high(period = aggregationperiod.Day)[1];
def LD = low ( period = aggregationperiod.day)[1];
def P1 = 0.5*(HD + LD );
plot scan = open[1]> P1; "
I know tos has a secondary aggregation problem, which tends to create uncertainty about whether my code will be properly executed or not. I am seeking advice on how I can make my criteria run accurately and without issue.
Thank you