URGENT Query

 

ArrayCopyRates(rates, Symbol(), PERIOD_D1);

will return rates of the previous day, but on a Monday this will be useless.

How do i force it to use the last trading day of the previous week.