Joao David Ngululia Buta #: I just dont get it . I did put a semi colon at the end of the CTrade expression. and how did you get all these errors when you compiled ? I only got 2
You did not include the <Trade\Trade.mqh> file.
You have too many unbalanced parenthesis.
You need to break up your code into understandable and readable code logic blocks, so that you can pick on these problems.
Hi guys , I just built my first EA using the trade class. The code compiles without errors but during the strategy testing in the strategy tester , the EA does not open any trades. In the journal tab , there are no error messages . Please help . Below is my code :
You have just registered and most likely you have questions such as, "How do I insert a picture to my a message?" "How do I format my MQL5 source code?" "Where are my personal messages kept?" You may have many other questions. In this article, we have prepared some hands-on tips that will help you get accustomed in MQL5.community and take full advantage of its available features.
Use MetaEditor's Styling function, to style code, so that you can see what the code is missing.
You have missing/unbalance parentheses "{ }" as well as several other coding errors.
Are you perhaps using ChatGPT?
Use MetaEditor's Styling function, to style code, so that you can see what the code is missing.
You have missing/unbalance parentheses "{ }" as well as several other coding errors.
Are you perhaps using ChatGPT?
No , I am not using chatgpt. I did style my code. which other several programming errors do you see?
Before correcting parentheses ...
After adding closing paranthesis to OnTick() ...
After adding "#include <Trade\Trade.mqh>" to beginning of file ...
You need to seriously analyse your code and fix all of these. There are still too many unbalanced parentheses.
Before correcting parentheses ...
After adding closing paranthesis to OnTick() ...
After adding "#include <Trade\Trade.mqh>" to beginning of file ...
You need to seriously analyse your code and fix all of these.
I just dont get it . I did put a semi colon at the end of the CTrade expression. and how did you get all these errors when you compiled ? I only got 2
Hi guys , I just built my first EA using the trade class. The code compiles without errors but during the strategy testing in the strategy tester , the EA does not open any trades. In the journal tab , there are no error messages . Please help . Below is my code :
...
...