![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
Thanks!
This lesson material is positively phenomenal! Many many thanks to the author.
Thanks bluto!![](https://c.mql5.com/forextsd/smiles/face.png)
I hope you enjoyed it!
Hi folks!
I want to thank you all for your kind comments.
This is the eighth lesson. it's about MQL4 Variables, I hope you enjoy it.
And I hope to be a useful for all of you GREAT TRADERS.
Hi Coders Guru
I have been doing the course that you posted on the net and I have to say that it is of emence value
BUT
In saying that I find that I am learning more from the examples and the interaction from the Forum eg New Digital, Forexst and others in lesson 4 was GREAT
Thank you so much. All of you
Regards
JBear
i didnt read all but just a simple question,
the sequence is -welcome, -lesson2 & -lesson8?
where is lesson 3-7 ?
regards
Hi taktiii
here is lesson 5 Loops and Decisions Part 1
JBear
i didnt read all but just a simple question,
the sequence is -welcome, -lesson2 & -lesson8?
where is lesson 3-7 ?
regardsI have a question.
What are the Ask, Bid, Bars, Close, Open, High, Low, Time and Volume?
Variables?
It was not mentioned in your lessons. May you describe about that?
What is the difference between Ask - Bid and other above mentioned variables?
Current bar is Bars = 0. Right?
And previous bar is Bars = 1.
And what is Bars = -1. Is it 10 or Is it the future bar?Yes, your first two assumptions on "Bars" are correct. But there is no value "-1", if there really was one, you had found a perfect trading system. Looking ahead one bar into the future and buy/sell accordingly ;-).
initialize a global variable
Hi all,
i have a special Question to MQ4, maybe you can help me
i have a global integer Variable in an EA
if i start the Programm the Variable will be initialice to 0 (i=0)
if i call the properties and then go back via OK. The Init() will be called
but the global variable i is not initialiset to 0
the variable has allways stored the old value.
the definition of the GLOBAL variable is:
int i=0;
on Solution can be to set the Variable to 0 in init()
but is there an other way?
Thanks a lot.
Thomas
i have a global integer Variable in an EA
if i start the Programm the Variable will be initialice to 0 (i=0)
if i call the properties and then go back via OK. The Init() will be called
but the global variable i is not initialiset to 0
the variable has allways stored the old value.
the definition of the GLOBAL variable is:
int i=0;
on Solution can be to set the Variable to 0 in init()If you want that variable to change to 0 every time you initialize the EA/indicator/somethingelse? you set it to 0 in the init() section. Or you change it to 0 in some other part. Or you use local variable instead of a global one. There are many-many ways to fix a problem as long as you know where you want to end up.