Hello,
I am in the process of finshing up my first EA. I still have a few importain things to add (like the ordersent) but I felt like it was time to debug. I was able to get everything fixed but a Ending } Expected. I know that this is due to unbalanced brackets and I have gone over every line a few times but I can't find a stray. I have posted my code so if anyone wants to go over it I would appreciate it. If theres any over reason why a Ending } Expected would happen I would like to know.
P.S. I know my code isen't pretty or formated great but its still in creation
Thanks to all who help
Hi Act,
You can use an editor like NotePad++ to find the matching pairs of brackets to fix your code.
Hope this helps,
Robert
Compile one line at a time. And make good use of Print or Alert statements. And adopt a neat style. There are lots of capital IF's instead of if. And you commented out your } in the last nest.
IF (trenddirection=1;) {//add} //---Wrong, use the below formats. if(trenddirection == 1){ //----Add Something----Simicolon at end; } //--or if(trenddirection == 1) { //----Add Something----Simicolon at end; } //---Works as well.
cosmicbeing--
Thanks
I will download it and try it now.
ubzen--
I did learn that I should compile every line while makeing this EA.
EDIT
Never mind about the 2nd problem, I added an extra }

- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hello,
I am in the process of finshing up my first EA. I still have a few importain things to add (like the ordersent) but I felt like it was time to debug. I was able to get everything fixed but a Ending } Expected. I know that this is due to unbalanced brackets and I have gone over every line a few times but I can't find a stray. I have posted my code so if anyone wants to go over it I would appreciate it. If theres any over reason why a Ending } Expected would happen I would like to know.
P.S. I know my code isen't pretty or formated great but its still in creation
Thanks to all who help