Forex
Google

Go Back   Forex Trading > Metatrader Training > Metatrader 4 mql 4 - Development course > Lessons
Forex Forum Register FAQ Members List Calendar Search Today's Posts Mark Forums Read


Register in Forex TSD!
Trading Systems Leaders in this forum (automated trading systems) are winning more than 3000 pips in a month (30000$ investing one lot every time).
Click here to register and get more information

Reply
 
LinkBack (2) Thread Tools Display Modes
  2 links from elsewhere to this Post. Click to view. #1 (permalink)  
Old 10-20-2005, 02:47 PM
codersguru's Avatar
codersguru codersguru is offline
Senior Member
 
Join Date: Oct 2005
Posts: 987
codersguru has a spectacular aura aboutcodersguru has a spectacular aura aboutcodersguru has a spectacular aura about
Wink Lesson 2 - SYNTAX

Hi folks!

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:

---------------------

Why don't you download the lesson and read more?

See u
Coders' Guru
Attached Images
File Type: pdf Lesson2.pdf (68.8 KB, 4791 views)

Last edited by forexts : 11-07-2005 at 08:32 AM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 10-21-2005, 04:12 PM
codersguru's Avatar
codersguru codersguru is offline
Senior Member
 
Join Date: Oct 2005
Posts: 987
codersguru has a spectacular aura aboutcodersguru has a spectacular aura aboutcodersguru has a spectacular aura about
Question Are there any questions?

Hi folks,

I'm not writing my lessons on Firday, I just came to ask you if there are any questions?

Did you find the SYNTAX lesson an easy lesson? do you have any suggestions?
__________________
Hope it helps !
Coders' Guru
Senior MQL programmer:
www.xpworx.com/custom.htm
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 10-21-2005, 04:22 PM
newdigital newdigital is offline
Administrator
 
Join Date: Sep 2005
Posts: 15,422
newdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud of
Thanks a lot for the lessons.
I am your student as well.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 10-21-2005, 04:50 PM
BrunoFX's Avatar
BrunoFX BrunoFX is offline
Senior Member
 
Join Date: Sep 2005
Posts: 819
BrunoFX will become famous soon enough
Thank you for this work and for your knowledge
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 10-24-2005, 08:36 PM
codersguru's Avatar
codersguru codersguru is offline
Senior Member
 
Join Date: Oct 2005
Posts: 987
codersguru has a spectacular aura aboutcodersguru has a spectacular aura aboutcodersguru has a spectacular aura about
Question Exercise 2

Question 1

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;

(Valid/Invalid)

Why:



2-
int 3Periods;

(Valid/Invalid)

Why:



3-
string _MyString = “Welcome”;

(Valid/Invalid)

Why:



4-
double
MacdCurrent,
MacdPrevious,
SignalCurrent;

(Valid/Invalid)

Why:



5-
color Color= C'128,128,128';

(Valid/Invalid)

Why:






.
Attached Images
File Type: pdf Lesson2Answers.pdf (26.2 KB, 639 views)
__________________
Hope it helps !
Coders' Guru
Senior MQL programmer:
www.xpworx.com/custom.htm

Last edited by forexts : 11-07-2005 at 08:34 AM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 12-13-2005, 05:54 PM
Blaiserboy Blaiserboy is offline
Senior Member
 
Join Date: Nov 2005
Location: Canada
Posts: 126
Blaiserboy is on a distinguished road
coding

It is more than generous of you to develop this thread and approach....

I greatly appreciate it.....

thank you


dave
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 12-13-2005, 09:14 PM
codersguru's Avatar
codersguru codersguru is offline
Senior Member
 
Join Date: Oct 2005
Posts: 987
codersguru has a spectacular aura aboutcodersguru has a spectacular aura aboutcodersguru has a spectacular aura about
Talking You're welcome!

Quote:
Originally Posted by Blaiserboy
It is more than generous of you to develop this thread and approach....

I greatly appreciate it.....

thank you


dave
dave,

You're welcome!
I hope you enjoy the course.
__________________
Hope it helps !
Coders' Guru
Senior MQL programmer:
www.xpworx.com/custom.htm
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 12-18-2005, 12:57 PM
grandguru grandguru is offline
Junior Member
 
Join Date: Dec 2005
Posts: 1
grandguru is on a distinguished road
I am only on my second lesson and I am quite impressed. This gives both studies and questions.


Thank you very much for sharing your knowlege
__________________
With God All things are Possible
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

LinkBacks (?)
LinkBack to this Thread: http://www.forex-tsd.com/lessons/143-lesson-2-syntax.html
Posted By For Type Date
Strategie i Systemy Forex This thread Refback 07-05-2008 01:52 PM
Strategie i Systemy Forex This thread Refback 06-27-2008 02:22 PM

Similar Threads
Thread Thread Starter Forum Replies Last Post
Need an OBJECT lesson ! CaptainVideo Tools and utilities 6 05-18-2006 10:42 PM
Lesson 9 - Preprocessors codersguru Lessons 7 05-18-2006 08:26 PM
Lesson 17 - Your First Script codersguru Metatrader 4 mql 4 - Development course 0 01-04-2006 11:37 PM
Lesson 7 - Functions codersguru Lessons 2 11-02-2005 03:32 PM


All times are GMT. The time now is 01:56 AM.