Questions from Beginners MQL4 MT4 MetaTrader 4 - page 234
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
OK, I see, thank you. Thought I'd try it out on an expert. But here I got 5203. In MT5, the same code works fine...
I think I figured it out. I set timeout 5000 (it worked on MT5, but not on MT4). I put 500 - it worked on MT4 as well.
Can you please advise how to transfer a function from an indicator to an EA to calculate directly in it?
)?
Can you tell me how to write this code 2 errors ! 1-unexpected end program 2- Unbalanced parentheses What is wrong in the sense of unbalanced parentheses?
Can you tell me how to write this code 2 errors ! 1-unexpected end program 2- Unbalanced parentheses What's wrong?
Errors with parentheses fixed - you need to look for paired, or better - first put the brackets, and then inside the code to write:
... But there is no logic in your code...
I'll add,
this:
won't work, OrderLots() function work, read the help.
variables:
CurAskPriceOne and CurAskPriceTwo
are not declared anywhere,
you need to do it roughly.
like this
not announced and it worked. :)
I can't figure out how to open orders, how to close them, how to take them by type, I can't figure out how to make the bot open one fucking order and that's it :) Let's take the simplest code, what do I need to put in the beginning or end to make this bastard open the order once.