First MQL5 code ever published!

Yes, this is true, the first MQL5 code can be found in MQL code base!!! I am very pleased to see the source, as there are many similarities to C++ language. Here comes the example class definition: (Copyright MetaQuotes 2009, MetaQuotes Software Corp.  http://www.metaquotes.net):





As we can see there are private and public specifiers and a class constructor: CTetrisField.

There is something that may look like a pointer, but apparently this is a handle:

m_shape = new CTetrisShape1;

We will be able to invoke methods by eg. m_shape.Draw();

Still excited and looking forward to BETA MT5 with MQL5 release!!!


1 comments:

Anonymous said...

I found this blog which has a few example EA's that can be downloaded for Metatrader. This really helped me get started switching from MT4 or MQL4.

http://www.jeremywhittaker.com/2010/10/24/mql5-sample-ea-or-expert-advisors/

Post a Comment