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.
I hope you enjoyed the “Welcome” lesson which tried to answer the very basic questions; what MQL4 is, why MQL4 and where (to write) MQL4?
Always the biggest and the most important question(s) are how, and the entire coming lessons are the answer.
Now, I want you to empty your mind from any confusion and read carefully the next few concepts.
We are talking today about the SYNTAX rules of MQL4. And as I told you before, If you are programming in C (or its superset C++) then you know a lot of MQL4 before even I start my lessons. That’s because the syntax of MQL4 is very like of the syntax of C.
The dictionary means of the word SYNTAX of a programming language is: “The set of allowed reserved words and their parameters and the correct word order in the expression is called the syntax of language”. “Wikipedia”
So, when we are studying the syntax of the language we are studying its grammar and writing rules which consist of:
SYNTAX in MQL4 is the studying of its grammar and writing rules which consist of
1-
2-
3-
4-
………………………………………………………………………………………………
Question 2
Which sentences of the following are false, and why?
1- When you write your code, you can freely use any set of spaces, tabs and empty lines you want to separate your code and your line of code to make them readable and eyes pleasing.
(true/false)
Why:
2- You can use “//” symbol to comment Multi lines by starts the line with “//” and ends it with “//”.
(true/false)
Why:
3- These keywords are reserved words in MQL4 which you can use them as name for your identifiers:
bool,white,Color,case,break,do and Extern
(true/false)
Why:
………………………………………………………………………………………………
Question 3
Which of the following is a valid code and which is invalid, and why?
1- extern int /*HELLO! I’m a comment*/ MA_Period=13;
hi codersguru this is a brilliant idea and i thank you dearly for your generosity.
just working my way through your lessons. thanks!!!
i have no doubt you will be rewarded by me and others.
you have a new student...