When scanner runs the tradescript code to evaluate the conditions?

Hi,

Can you please tell me if I run a scanner for alerts then at what time interval/stamp the code is executed? For example-

I have scanner named "test" with 2 stocks in a list ACC and BPCL.

script code:

REF(CLOSE,1) > CLOSE

periodicity: Minute, Bar interval = 15

I load scanner at 9:10 AM.

So, is after every 15 mins REF(CLOSE,1) > CLOSE checked? OR it checks whenever CLOSE is changed?

My assumption is it checks on 9:15, 9:30, 9:45....3:15 irrespective of my scanner loading time because I chose 15 min interval.

My aim is to check REF(CLOSE,1) > CLOSE every 15 mins at 9:15, 9:30, 9:45....3:15 as I want to search things on 15 min candle stick (I don't want checking the condition on 9:20, 9:35, 9:50...). I guess you got my point.

Thanks,

Vishal



Yes it will check as per the bar interval or candle time frame we set, in the above it check on every close of candle of 15 minute in scanner

Thanks AlgoGeek for the Answer. But that is not happening when I am running a test scanner.
To check this I added a tradescript that is always evaluated to true.
I added 2 images above. 1st shows scanner script “REF(HIGH,1)>REF(LOW,1)” and 2nd shows alert time.
This script generates alert all the times not at 15 min interval. (i.e. ideally it should generate alert at 12:00, 12:15, 12:30… but its generating the alert every time when there is buy or sell activity is happening in the stock.
Can you tell me where my script is wrong because its not executing the code at 15 min interval.? OR is this a tradescript bug?
Thanks,
Vishal