I would like Amibroker to open a CSV file and import/read a list of dates from one of its columns. I believe that I would need to create an array of these dates? I figured out how to read the column with fopen(), but not sure how to create the list/array here. How can I do that?
Once I have the list of dates loaded, I would like for the BUY signal to check if a bar is in this list/array and if so to avoid buying on all of the dates in the list. Is this possible?
The example I gave you use mode 0 for lookup function which means "find exact match, otherwise return Null" if you use mode -1 it will return exact match, OR the nearest predecesor (if datetime is past last bar it will return last bar value)
So use lookup with mode -1, this will return index to the last intra bar of that day. Than just mark all the rest of the day
For what it is worth: your AFL formulas run with private copy of OHLC data, so if you modify them, you will only see those modification within the scope of that formula upto execution end. You won't be modifying actual database.