Tiberio:
Try to put a int variable before ordersend functionHi ...
I am trying to develop an EA I am having problems with "OrderSend". I do not understand programming language very much, I've already tried a lot of solutions and I did not find ... But it does not work. The message
"return value of 'OrderSend' should be checked"
appears ... It contains no errors, however no position is open during tests ... When testing with the demo account I'm not having success. The test runs and no position is opened at any time.
Attached is an example of the "mt5" file of a simple EA that should open position whenever "Open [1] <Close [1]".
Can someone help me by indicating the necessary adjustments I should make?
I test it on
BOVESPA (Brazil)
WINJ17
Demo Account
Metatrade 5
Can someone help me?
Thank's
something like:
int x = OrderSend(...);
Maybe it could help

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
I am trying to develop an EA I am having problems with "OrderSend". I do not understand programming language very much, I've already tried a lot of solutions and I did not find ... But it does not work. The message
appears ... It contains no errors, however no position is open during tests ... When testing with the demo account I'm not having success. The test runs and no position is opened at any time.
Can someone help me by indicating the necessary adjustments I should make?
I test it on
BOVESPA (Brazil)
WINJ17
Demo Account
Metatrade 5
Can someone help me?
Thank's