You have used an EA builder to write 1 or maybe 2 EAs and tried to paste one inside another.
I doubt that you will find anyone here willing to fix code created by an EA builder.
Mt4 editor mixes sometime the closing ) and }. I would use Notepad++ and count opening and closing brackets...
gooly:
Mt4 editor mixes sometime the closing ) and }. I would use Notepad++ and count opening and closing brackets...
Gooly! This is not the case. Have another look at the code posted. The OP has pasted a full EA right smack in middle of another (see subsection below).Mt4 editor mixes sometime the closing ) and }. I would use Notepad++ and count opening and closing brackets...
{ OrderSelect(i,SELECT_BY_POS ,MODE_TRADES); if (OrderMagicNumber()==MagicNumber) result++;#property copyright "Expert Advisor Builder" #property link "http://sufx.core.t3-ism.net/ExpertAdvisorBuilder/" extern int MagicNumber = 0;
- We hate EA builder
- You couldn't be bothered to learn mql4, therefor there is no common language for us to communicate.
- There are only two choices: learn to code it, or pay someone. We're not going to code it FOR you. We are willing to HELP you when you post your attempt (using SRC) and the nature of your problem, but we are not going to debug your hundreds lines of code.
- EA builder makes bad code counting up while closing multiple orders.
- EA builder makes bad code Bars is unreliable (max bars on chart) volume is unreliable (miss ticks) Always use time
- EA builder makes bad code Not adjusting for 4/5 digit brokers
- EA builder makes bad code not adjusting for ECN brokers.
- EA builder makes bad code not checking return codes.
- EATree uses objects on chart to save values - not persistent storage (files or GV+Flush.) No recovery (crash/reboot.)

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
')' - unexpected end of program Scalping.mq4
'{' - unbalanced parentheses Scalping.mq4
return value of 'OrderSelect' should be checked Scalping.mq4
return value of 'OrderModify' should be checked Scalping.mq4