You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
What could be the cause of this error: Trading is prohibited for account 67151430. Perhaps the connection to the trading account was made via an investment.
I install the advisor, and there is this.
Hi guys, I have EA with 0 error and 0 warning but it wont trade for me? Can someone help me? Thanks.
I did a Print() test of your can_buy and can_sell variable values, and they always return true. Based on the common usage of the RSI indicator, you seem to have inverted < and > in your code. I swapped them and only can_buy or can_sell returned true at a given time:
Unless your EA is communicating with an external file in MT5, there's no need to use terminal-wide GlobalVariables. For manual tracking purposes, you can simply Print() to the Experts tab.
I did a Print() test of your can_buy and can_sell variable values, and they always return true. Based on the common usage of the RSI indicator, you seem to have inverted < and > in your code. I swapped them and only can_buy or can_sell returned true at a given time:
Unless your EA is communicating with an external file in MT5, there's no need to use terminal-wide GlobalVariables. For manual tracking purposes, you can simply Print() to the Experts tab.