[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 391
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
Good afternoon. Question about standard SendMail function ... In orderto understand how the function works, I wrote this script:
When running in the client terminal window, an error appears in the log:
In the settings (client terminal menu Tools -> Settings -> Mail tab) the following parameters are set:
Where instead of three dots in fields SMTP login and From Whom there is a name of that mailbox from which I want to send message, and in field To - name of mailbox to which I want to send message.
At the same time theport number specified in theSMTP Server field is really 25:
Note: the screenshot was made in the Help section of the Mail.Ru.
Question: what is this error and how to get rid of it? The compiler doesn't detect errors and the GetLastError() function returns 0.
P.S. In order not to clutter up the forum, thank you in advance for your response.
Good afternoon. Question about standard SendMail function ... In orderto understand how the function works, I wrote this script:
When running in the client terminal window, an error appears in the log:
In the settings (client terminal menu Tools -> Settings -> Mail tab) the following parameters are set:
Where instead of three dots in fields SMTP login and From Whom there is a name of that mailbox from which I want to send message, and in field To - name of mailbox to which I want to send message.
At the same time theport number specified in theSMTP Server field is really 25:
Note: the screenshot was made in the Help section of the Mail.Ru.
Question: what is this error and how to get rid of it? The compiler doesn't show errors and the GetLastError() function returns 0.
P.S. To avoid littering the forum, thank you in advance for your response.
help please.
Here's the code
I have no way to make a loop open when a deal was closed in minus and if the next order closed above zero, i.e. positive balance, but less than negative, we add plus to negative and get a new negative value, which is already less.
If it is more negative, according to the signal, we close the order and start the cycle from the beginning.
The situation is that when this code closes the deal in loss, then it remembers the minus balance, and when it closes the deal in the plus, and the plus is less than the balance, then it resets Sum_Loss and I need that it would not zeroed, and mowed down.
So this is how it works now:
it checks a closed order, if the profit of closed order is less than zero, then this profit is added to Sum_Loss, and so on until the profit of open trade exceeds (will be more than) Sum_Loss, when reached, the trade is closed, and Sum_Loss is zeroed and the cycle begins again.
I need:
order closed in minus, its minus profit was added to Sum_Loss, then if the next deal closed with a positive profit, Sum_Loss is reduced by the amount derived from the profit, which means that the next open order Sum_Loss is already a smaller amount, and so on until the order profit is greater than Sum_Loss, and then Sum_Loss is cleared and a new cycle starts.
Sum_Loss = 0;
1st closed order: Profit (-50) < 0
Sum_Loss + profit (Sum_Loss + (-50))
Sum_Loss = -50;
2nd closed order: Profit (+40) > 0 and Sum_Loss < 0
Sum_Loss + profit (Sum_Loss + 40)
Sum_Loss = -10Good afternoon. Question about standard SendMail function ... In orderto understand how the function works, I wrote this script:
When running in the client terminal window, an error appears in the log:
In the settings (client terminal menu Tools -> Settings -> Mail tab) the following parameters are set:
Where instead of three dots in fields SMTP login and From Whom there is a name of that mailbox from which I want to send message, and in field To - name of mailbox to which I want to send message.
At the same time theport number specified in theSMTP Server field is really 25:
Note: the screenshot was made in the Help section of the Mail.Ru.
Question: what is this error and how to get rid of it? The compiler doesn't show errors and the GetLastError() function returns 0.
P.S. To avoid littering the forum, thank you in advance for your reply.
help
the server smtp.mail.ru:25 really works
help
The smtp.mail.ru:25 server really works.
My test login, from whom, to whom, matches.
Maybe the firewalls are getting in the way?
Oh, man, that's a million tips - reset the terminal!
Help out people
I put a pending order at price x. The order is converted into a market order at price Y. Can I find out somewhere at which price the pending order was placed (in the journal ...or ) or I will have to write my own array
Good evening!
Please advise me on the possible source of the error. I'm just learning the language, so I'm a little stumped.
The task in Expert Advisor code is to read data from .scv file (two values in a line, 400 lines) and write them into an array.
The problem is this: if I throw the EA on a chart, it prints an alert with the correct values from the array, but if I try to test the EA, it prints an alert "No file" in the log. That is, it seems it cannot access the file (although it's unbelievable) and writes values into the array (which is confirmed by another alert), but gets stuck on finding the file, according to the log. Confused. Below is a screenshot.
alexeymosc:
The problem is as follows: if I throw the Expert Advisor onto the chart, it outputs an alert with the correct values from the array, but if I try to test the Expert Advisor, it outputs the "No file" alert in the log. I.e. it seems it cannot access the file (although it's unbelievable) and writes values into an array (this is confirmed by another alert) but freezes on finding a file in the log. Confused.
In the tester and on the chart the files are written and read in different directories: