Welcome to Forex-TSD!, one of the largest Forex forums worldwide, where you will be able to find the most complete and reliable Forex information imaginable.
From the list below, select the forum that you want to visit and register to post, as many times you want. It’s absolutely free. Click here for registering on Forex-TSD.
Exclusive Forum
The Exclusive Forum is the only paid section. Once you subscribe, you will get free access to real cutting-edge Trading Systems (automated and not), Indicators, Signals, Articles, etc., that will help and guide you, in ways that you could only imagine, with your Forex trading.
Elite Section
Get access to private discussions, specialized support, indicators and trading systems reported every week.
Advanced Elite Section
For professional traders, trading system developers and any other member who may need to use and/or convert, the most cutting-edge exclusive indicators and trading systems for MT4 and MT5.
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
__________________
Great Wealth comes to those who experience trends; Great expense to those who try and predict them.
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 ;-).
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?
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.