Hi Kairu,
I am not sure what kind of error you got. I have ami 5.3 and I did not get any errors. The code looks more like intraday trading system. Anyhow, I have added snippet for scans and exploration in the code. Attaching the same here with.
thank you