The Best PTC Sites List Updated Jan 01 2010

want get paid like this??
click the picture to view image in full size
or like this?? Follow this!!

Syntax to Make a Money Machine

Programming language to make money machine called MQL4. MQL (Metaquote Language) version 4 is standard language for indicator, script, or expert advisor (EA) programming that used at Metatrader platform. With this language we can make automatic machine that can trading forex for sell, buy, and close without our interere.

Expert Advisor / EA or forex robot, that I ever explain in this blog, is a program to optimizing your trading based on some logics and parameters that have already available in MQL4.

Custom Indicator, it alike EA, but it cann't trading automatically.

Script, alike EA, is assemlage of process, but just can processing all at once.

Program/script with MQL 4, can make easily, that is just run MetaEditor.

The syntax structure of MQL4 is alike C/C++. So if you usually use C or C++, you will not get trouble to make this program.

Here it is the example of some part of the syntax to make automatic machine called forex robot or EA:


         //----+ +----------------------+
//----+ DETECTING A TREND |
//----+ +----------------------+
if (LastBarsX_Up != IBARSX_Up)
{
//----+ Initialization of variables
LastBarsX_Up = IBARSX_Up;
BUY_Sign = false;
BUY_Stop = false;

//----+ calculating the values of indicators
Fast_StepMA = iCustom(NULL, TimeframeX_Up, "StepMA_Stoch_NK",
PeriodWATR_Up, Kwatr_Up, HighLow_Up, 0, 1);
//---
Slow_StepMA = iCustom(NULL, TimeframeX_Up, "StepMA_Stoch_NK",
PeriodWATR_Up, Kwatr_Up, HighLow_Up, 1, 1);
//----+ detecting a trend
TrendX_Up = Fast_StepMA - Slow_StepMA;
//----+ defining a signal to close trades
if (TrendX_Up < 0)
BUY_Stop = true;
}


The next level, MQL4 make interconnection with DLL (Dynamic Link Library) file. So the MQL4 aplication become more powerfull and can communicate with other aplications to make programming that more complex and complicated, and of course to added some functions that not provided by standard MQL4 like sending SMS if want to send some signal, make activation code, make register, send email with report to website and other supported aplications.

For more informations, please visit www.mql4.com

Thats all, I hope that it can become starting step to become a programmer that still scarce (just than delphi, VB, PHP) and more specially to make money machine, automatic machine to make dollar.

Happy coding, happy trading, and happy blogging.... :D

No comments:

Post a Comment

Post your question here...