Hi, I'm new here, so I have a pretty trivial question. How do I find out the closing price of the previous day when I'm working in code with minute data? At the same time, how do I find out the current price on the market?

I simply want to compare the "current market price" with the closing price of the previous day every trading day. How do I achieve this? Thank you.

I can program in MQL4. There I would solve this problem simply:

double actual_price = iClose (Symbol (), 0,0);
double previous_day_close = iClose (Symbol (), PERIOD_D1,1);

How do I do the same, here? Thanks.

Author