Forex



Go Back   Forex Trading > Training > Metatrader > Metatrader 4 mql 4 - Development course > Lessons
Forex Forum Register More recent Blogs Calendar Advertising Others Help






Register
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.
See more

Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old 10-20-2005, 03:47 PM
codersguru's Avatar
Senior Member
 
Join Date: Oct 2005
Posts: 994
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 Files
File Type: pdf Lesson2.pdf (68.8 KB, 7206 views)

Last edited by forexts; 11-07-2005 at 09:32 AM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #2 (permalink)  
Old 10-21-2005, 05:12 PM
codersguru's Avatar
Senior Member
 
Join Date: Oct 2005
Posts: 994
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!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #3 (permalink)  
Old 10-21-2005, 05:22 PM
Administrator
 
Join Date: Sep 2005
Posts: 20,058
Blog Entries: 241
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!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #4 (permalink)  
Old 10-21-2005, 05:50 PM
BrunoFX's Avatar
Senior Member
 
Join Date: Sep 2005
Posts: 816
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!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #5 (permalink)  
Old 10-24-2005, 09:36 PM
codersguru's Avatar
Senior Member
 
Join Date: Oct 2005
Posts: 994
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 Files
File Type: pdf Lesson2Answers.pdf (26.2 KB, 967 views)
__________________
Hope it helps !
Coders' Guru
Senior MQL programmer:
www.xpworx.com/custom.htm

Last edited by forexts; 11-07-2005 at 09:34 AM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #6 (permalink)  
Old 12-13-2005, 06:54 PM
Senior Member
 
Join Date: Nov 2005
Location: Canada
Posts: 208
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!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #7 (permalink)  
Old 12-13-2005, 10:14 PM
codersguru's Avatar
Senior Member
 
Join Date: Oct 2005
Posts: 994
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!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #8 (permalink)  
Old 12-18-2005, 01:57 PM
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!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #9 (permalink)  
Old 10-23-2008, 11:38 PM
calcowboy's Avatar
Junior Member
 
Join Date: Oct 2008
Posts: 10
calcowboy is on a distinguished road
Thank you for good lesson!

I'm very new here and very thank you for your lessons. I hope I can learn well.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #10 (permalink)  
Old 06-07-2009, 12:39 PM
Junior Member
 
Join Date: Jan 2009
Posts: 3
jeffry01 is on a distinguished road
Wink

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...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
Reply

Bookmarks

Tags
Pivot ea


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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

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

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


All times are GMT. The time now is 06:55 AM.



Search Engine Friendly URLs by vBSEO 3.2.0 ©2008, Crawlability, Inc.