Before posting please read some of etasoft forex ea generator other threads . Please use this to post code . Please edit your post or it will be deleted. Doubt if you know how to use SRC.
When you click on SRC, a sub-window will pop-up. Paste your code there and click insert. Try looking in this area, there is something wrong there . Yes I can, but why can’t you count the braces ? I can see the problem just by looking at your posted code . Where is the matching closing brace for this .
And while you are reading, can you explain what this code does ? Check Last Order Type AND Lots? There is a “Check last order type” block. Forex EA and Script Generator version 4.