Building EAs and MQL 101
  #1 (permalink)  
Old 10-10-2006, 10:07 PM
Freshman
 
Join Date: Oct 2006
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
mforexx is on a distinguished road
Lightbulb Building EAs and MQL 101

Hi

I am interested in learning MQL coding I have read the documentation provided and need clarification.

Can someone go over the essentials of EA and Indicator coding. I am enrolling in a C# class at present.

To get some idea of the structure of a standard Expert Advisor, let us take a look at the description given below:

1. Initializing variables

2. Initial data checks

check the chart, number of bars on the chart

check the values of external variables: Lots, S/L, T/P, T/S

3. Setting the internal variables for quick data access

4. Checking the trading terminal – is it void? If yes, then:

checks: availability of funds on the account etc...

is it possible to take a long position (BUY)?

open a long position and exit

is it possible to take a short position (SELL)?

open a short position and exit

exiting the Expert Advisor...

5. Control of the positions previously opened in the cycle

if it is a long position

should it be closed?

should the trailing stop be reset?

if it is a short position

should it be closed?

should the trailing stop be reset?

It turns out to be quite simple (loloolol ok), only 4 main blocks.

Now let us try to generate pieces of code step by step for each section of the structural scheme:
Reply With Quote
  #2 (permalink)  
Old 10-11-2006, 03:35 AM
gazuz's Avatar
Senior Trader and Moderat
 
Join Date: Aug 2004
Posts: 768
Thanks: 1
Thanked 7 Times in 5 Posts
gazuz is a name known to allgazuz is a name known to allgazuz is a name known to allgazuz is a name known to allgazuz is a name known to allgazuz is a name known to all
Default

Hmm the problem with this is that full books can be writen on how to code it. I always try to find something similar to what I have and then switch it around a bit. MQL is just like any language, a bunch fo if's and then's you just need to know how to make it flow together
__________________
____________________________\¦/
___________________________(ò ó)
______________________o0o___(_)___o0o__
___¦_____¦_____¦_____¦_____¦_____¦_____¦
¦_____¦_____¦_____¦_____¦_____¦_____¦__
___¦_____¦_____¦_____¦_____¦_____¦_____¦
¦_____¦_____¦_____¦_____¦_____¦_____¦__
Reply With Quote
Hello Expert Advisor help
  #3 (permalink)  
Old 04-03-2008, 10:51 PM
Freshman
 
Join Date: Apr 2008
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
fyik is on a distinguished road
Default Hello Expert Advisor help

Hi, would appreciate if some help as to where I can start learning a simple EA and compile and run testing? I m uing MT4 platform. Thanks.
Reply With Quote
  #4 (permalink)  
Old 04-04-2008, 11:55 AM
oilfxpro's Avatar
Forex Warrior
 
Join Date: Nov 2007
Posts: 285
Thanks: 9
Thanked 16 Times in 12 Posts
oilfxpro is on a distinguished road
Default

Quote:
Originally Posted by fyik View Post
Hi, would appreciate if some help as to where I can start learning a simple EA and compile and run testing? I m uing MT4 platform. Thanks.

Mql - Metatrader Development Course
__________________
pro-expert-advisors,com
Reply With Quote
  #5 (permalink)  
Old 04-27-2008, 07:44 PM
Freshman
 
Join Date: Apr 2008
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
kepala is on a distinguished road
Default

Hello....Hi...

I am looking lazy trading e-book and indicator...please e-mail me at : . Anybody have been tested this system before ?

Last edited by bossxero : 04-27-2008 at 08:01 PM.
Reply With Quote
  #6 (permalink)  
Old 05-03-2008, 12:44 PM
Freshman
 
Join Date: Oct 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
murillo2004 is on a distinguished road
Default

I am new tothe metatrader world am I too am interested in learning how to code indicators myself THX
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



All times are GMT. The time now is 06:27 AM.
Powered by vBulletin Version 3.6.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.1.0

Registered members have access to special online forex currency trading tools, software, mt4 expert advisors and indicators. Register now