Most of the ‘Trade is not allowed’ error messages occur for the clients that are using an Expert Advisor. In this case, you need to allow Automated Trading by following the below steps:
1) Login to your MT4 trading account.
2) Click on Tools > Options
3) Click on Expert advisors > Allow Automated trading> OK.