{"id":747,"date":"2014-11-28T17:07:05","date_gmt":"2014-11-28T22:07:05","guid":{"rendered":"http:\/\/www.amibroker.com\/kb\/?p=747"},"modified":"2014-12-04T08:18:28","modified_gmt":"2014-12-04T13:18:28","slug":"how-to-restrict-trading-to-certain-hours-of-the-day","status":"publish","type":"post","link":"https:\/\/www.amibroker.com\/wordpress\/kb\/2014\/11\/28\/how-to-restrict-trading-to-certain-hours-of-the-day\/","title":{"rendered":"How to restrict trading to certain hours of the day"},"content":{"rendered":"
In order to include time-based conditions in the back-testing code – we can use TimeNum() function to check the time-stamp of given bar and use it as input for any time-based conditions. http:\/\/www.amibroker.com\/f?timenum<\/a><\/p>