I want to know how to use amibroker to identify if there is a trading halt? Ie. if there is a trading halt, please give me the first opening price after the trading halt minus the last closing price before the trading halt.
Norgate provides EOD data, but you will need intraday data to find the halts.
Unfortunately, the halts are not marked in the data (there is no "halt" flag).
I think you would have to write some fairly complex code to calculate when a halt should have occurred due to the price action, and then identify if there was a time when the price was flat for as many bars as a halt should have lasted during that time period.
An Example is BOQ (ASX). There was a trading halt on 19 Feb 2021 to 22 Feb 2021. ie. There was no data in Norgate for those days (see screen print below).
Any idea how I can use AFL to identify "points\days\bars" where there are no data in Norgate?