I am attempting to restrict the hours during which trading can occur, but I have not been successful with my attempts so far. I would appreciate any input or suggestions on how to accomplish this.
// Function to Check if Trade Time is Valid
bool IsTradeTime() {
datetime now = TimeCurrent();
int hour = Hour(now);
Error: 'Hour' - wrong parameters count