Sanka91: however it does not take any trades in the backtester and I can´t seem to find the reason for it.
- Are your books one column but two feet wide? No because that is unreadable. They are 6 inches, sometimes two columns, so you can read it easily. So should be your code. I'm not going to go scrolling (or moving my eyes) back and forth trying to read it. Edit the post with formatted code and you might get additional help.
- Since you're not getting an error message, it is your logic. Print out your variables, and find out why.
WHRoeder:
Dear WHRoeder,- Are your books one column but two feet wide? No because that is unreadable. They are 6 inches, sometimes two columns, so you can read it easily. So should be your code. I'm not going to go scrolling (or moving my eyes) back and forth trying to read it. Edit the post with formatted code and you might get additional help.
- Since you're not getting an error message, it is your logic. Print out your variables, and find out why.
thanks for the input, I will try to find the error by printing the variables before I upload a new formatted code.

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
Hello MT4 community,
I am relatively new to MT4 and during the course of the last weeks I tried to program a simple EA on my own. I am pretty sure I have all the parameters that are needed to make this EA work, however it does not take any trades in the backtester and I can´t seem to find the reason for it. The preinstalled sample MACD EA works just fine in the backtester and it has a similar structure.
I´d be very thankful if someone had a look at it. Maybe I oversee the obvious again :/. Note: Variables are in German, however I indicated in English what each variable and function does.