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.
Gives out two errors - generally doesn't work. (Error in program end)
LeksusMt4: 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.
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
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.