For example, I want to extract the settlement price of LE at CME, which is being determined once a day at 13:00 (Exchange time).
If I use a 15 minutes bar chart, I will have on the Monday session 12:50 close and a 13:05 close, but no 13:00 close.
Currently, I use this code to circumnavigate this issue:
Code: Select all
if time >= settlement_time then begin
if count_c = 0 then begin
count_c = count_c + 1;
settlement_price = close;
end;
end;
if time < settlement_time then count_c = 0;
So I wonder if you really have to decrease bar intervals to 1 or 5 minutes in order to work around this issue, or if there is a solution that works with 15 minutes or even higher bar interval.
Any help is highly appreciated.