realamount/1000=Beforefloor; ///// "/ - assignment expected" and "1000 - unexpected token" MathFloor(Beforefloor)/100==InvestLots; ///// "/ - semicolon expected" and "/ - unexpected token" and "100 - unexpected" and more
I reckon you wanted to:
Beforefloor=realamount/1000; InvestLots=MathFloor(Beforefloor)/100;
The expression to calculate is always on the right, and the variable to assign the result to - on the left.
{i++&&Alert"up";}
This won't work either. && is for logical AND, not for 'do this and that'.
{ i++; Alert("up"); }
This will. (I think so :)
Thanks so much Drave. That fixed all the problems. Theres more showing up now, but at least there diffrent so I can work on them.
Thanks again

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
I have been coding my first EA. There is one area that almost everthing has an errors, assignment expected, unexpected tokens, semi-colons, in places that shoulden't have them.
I have marked a few examples in comments.
Why would this one area do this? I really need help, I don't know what eles to try.