How to get day from price bars ?

How to get day from price bars ?



Thank you

sorasit46:

How to get day from price bars ?

Time[]  or iTime()
sorasit46:

How to get day from price bars ?



Thank you

Use iTime and TimeDay

Use Time[] to the bar's open time.  Then use TimeDay() to get the day of the month.

Example:

int day_of_month = TimeDay(Time[0]);
Thanks