[ARCHIVE!] Any rookie question, so as not to clutter up the forum. Professionals, don't pass by. Can't go anywhere without you - 4. - page 281
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
You have repeated the error several times:
You put an if condition, then write something in its parentheses, then put a semicolon behind the closing bracket. like this:
That's not right. This is correct:
You have repeated the error several times:
You put an if condition, then write something in its parentheses, then put a semicolon behind the closing bracket. like this:
That's not right. This is correct:
You have repeated the error several times:
You put an if condition, then write something in its parentheses, then put a semicolon behind the closing bracket. like this:
That's not right. This is correct:
In short, I had patience for exactly a hundred lines. It's absolutely unclear where in your idea the condition should be closed. For example, if(total<1){ but it's hard to understand where to close it. Well, here's a file with a hundred of code lines fixed. Look how it's formatted and don't be lazy to put curly brackets...
The file is attached to the post. This hundred lines is enough to see the difference between using normal and abnormal code formatting.
In short, I had patience for exactly a hundred lines. It's absolutely unclear where in your idea the condition should be closed. For example, if(total<1){ but it's hard to understand where to close it. Well, here's a file with a hundred of code lines fixed. Look how it's formatted and don't be lazy to put curly brackets...
The file is attached to the post.
Outputs two errors - does not work at all. (Error in endprograms)
The essence of the trading robot is buying and selling following the Sar indicator - maybe I have not set conditions correctly?
Here is the code editor: http://depositfiles.com/files/2ippj8zao - download, unzip, run (installation is not required). Open in this editor the file I posted for you earlier and look at your code - where the vertical dashed lines go.
Buying and selling following any indicator can be executed differently. Your intent is not entirely clear.
P.S.
The editor has been already sharpened for MQL4 and bracket highlighting works in it.