[Archive!] Any rookie question, so as not to clutter up the forum. Professionals, don't pass it by. Couldn't go anywhere without you - 2. - page 335
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
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
There is no such function in the source code of the "simple EA". Where to write it, in that case, in my variant - my knowledge is not enough:
P.S. There is only in the order opening block (8).
You have an error here, you get the same thing 4 times.
Please advise, there is a function for drawing a label:
When the function is called twice in a row (I want to draw two labels in different places), only the last one remains:
Please advise, there is a function for drawing a label:
When the function is called twice in a row (I want to draw two labels in different places), only the last one remains:
You create an object with the name "tName", and you want the name passed in the variable tName
The function receives the value (name) of the variable tName when it is called. In this case, tName takes the names of
n agree that variable names are not taken in quotes " tName":))))
Truly! Thank you, that helped!
Can I ask you another question?
Is it possible to read the value of "buy/sell" item in EA settings? (so the program works differently depending on this setting).Please advise, there is a function for drawing a label:
When the function is called twice in a row (I want to draw two labels in different places), only the last one remains:
Try that and you'll be fine.
todem
Thanks, got it figured out :)
This is some kind of nonsense. I can't attach the Zig-Zag to the graphic. Can anyone tell me what the problem is?
Faced the following problem. I have written a simple Expert Advisor. I start it in the strategy tester. I have only run it through March 2011 and received 21 orders. I have run it for the period from April 2010 to March 2011 and received only 5 orders.
I understand that if I run it for a longer period, it should give me either more or equal 21 orders. But I got less.
Why can it happen? How to fix this problem? Please, advise.