The Time[0] function does not let me to use a negative index to get the time for the next bar... My purpose of getting the time for next bar is to close my existing positions 2 hours before the weekend..
Also, I do not know whether the next trade day is holiday or not, for example, on thursday night, I should do the same for friday night in case friday is not a trading day.
Anybody can give me some hints? Thank you very much !!
Also, I do not know whether the next trade day is holiday or not, for example, on thursday night, I should do the same for friday night in case friday is not a trading day.
Anybody can give me some hints? Thank you very much !!