Any rookie question, so as not to clutter up the forum. Professionals, don't pass by. Nowhere without you - 6. - page 966
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
Thanks for the reply. I myself found (Googling knows almost everything) such a solution:
It seems to work clearly, but I'm not good with static variables yet.
And a related question - someone explain to a newbie the logic of the following fragment:
And while the local variable Signal is assigned values 1 or 2 by conditions, the global lastsignal is not assigned values anywhere.
And another thing - I don't understand how a variable with an as yet undefined value can be compared to anything?
Help me understand. Thank you.
ZS: But the most interesting, and for me not understandable at all, is the comment of the template developer to this fragment:
Please advise me, I am writing an Expert Advisor, compiling it, no errors, but it is nowhere to be found in the navigator, there is only an mq4 file in MetaEditor. I tried it in different terminals, but everything was OK before.
Greetings
Does MT4 have a feature or function) Send internal terminal mail to or sms, (e.g. to receive server restart messages, etc.)?
I also lost my EA after compilation, it turned out that I accidentally erased the directory when creating Eperts\MoySovetnik and it was placed in the root folder during compilation, I don't remember where.
I have been testing my simplest non-syndicator EA for the last three months, since September of this year, and something is not good for me: can it be possible that with a fixed volume of 0.1 lot a profit for three months is 29 112 cents and not a single losing trade? What is the catch, does anyone know?
I have already downloaded a new terminal, created an EA in the code of which one variable is declared, compilation does not give errors. This EA appears only in MetaEditor at the very bottom, after all directories, as a separate file like mq4 and that's all, it is not shown anywhere else and I cannot attach it to the chart.
This is why it appears at the bottom because you are erasing the directory name. Do not erase the word Experts\ when writing a new name.
Hello. There's a problem I've never encountered before. I have written a piece of a multi-currency Expert Advisor program. No errors detected on compilation, but when I try to test it I get a response:
2015.11.24 14:37:20.503 TestGenerator: no history data 'EURUSD1' from 2015.11.02 to 2015.11.03
The meaning is clear that there is no historical data, but in the board the currency is written as "EURUSD". Where did EURUSD1 come from and how to find the error.
Who knows the solution to this problem, please advise.