Solved.
to help those who have the same problem as me, The problem is with MetaBrazil-Demo.
I changed the server and the EA worked properly.
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
Hi everybody.
I am starting to develop EA on MetaTrader 5 and I am having some problems to test it with bovespa.
I took the example in https://www.mql5.com/en/articles/100 to understand the sintax and develop my algorithm on it because a lot of treatments are already implemented in this example.
I loged in MetaBrasil-Demo to do the tests using VALE3.
When it got the first short signal and created the sell order, it worked succesfully. But when the function OnTick() ended, the EA stops and it calls the function OnDeinit() with result 1 (REASON_REMOVE )
It is also throwing some errors of looking for USDBRL. Why it tries to synchronize USDBRL in a chart of VALE3? That does not make any sense. The EA always uses the _Symbol.
Here is the log generated. Look that I sent the short order, it have synchronized USDBRL(?) and it got errors, the trade worked and it stated the shutdown.
I thought it would be because it is configured to show values in Dollar(USD), so I tried to change to Brazilian Real(BRL) but i don't found it.
I tested the EA in forex with MetaQuotes-Demo and it worked properly.
Does somebody knows whats is happening and how solve it?
Thank you very much.