Discussion of article "MQL for "Dummies": How to Design and Construct Object Classes"

 

New article MQL for "Dummies": How to Design and Construct Object Classes is published:

By creating a sample program of visual design, we demonstrate how to design and construct classes in MQL5. The article is written for beginner programmers, who are working on MT5 applications. We propose a simple and easy grasping technology for creating classes, without the need to deeply immerse into the theory of object-oriented programming.

Author: Sergey

 

yes of course oop is interesting and constructive and visual design is very necessary.

or mt5 will soon turn into a social network with a happy farmer and Texas Hold'em.

you should be ready to create your own windows to develop new applications like kiss on the chart.

 
 

Maybe I did something wrong?

but it's not working....

 
Try the compiled file.
Files:
 
CoreWinTT:

Maybe I did something wrong?

but it doesn't work....

Do you have an updated Standard Library?
 

half-tried it and it worked.

Then I created this project

to add such a window, let's say for the masd indicator from the article

Creating an indicator with graphical control capabilities

The upper buttons in the header minimise the settings panel and, as I understand, unload the indicator in the future.

As you can see, the first line is responsible for the masd method, and when you click on it, a variation of Elder's

  1. Elder's MACD, also known as the impulse system;
  2. Elder's MACD without moving line check;
  3. oSMA is coloured when the indicator is falling or rising;

line 2,3,4,5 we have input settings.

Here I want to get this result.

Well, I think I've done it. I've created a file.

But it doesn't compile again. And how to use it further???????.

even if this module is intended only for experts.

Let's make such a thing for MACD Sample.mq5.

for input parameters so that you can change the parameter by pluses or minuses and minimise this window and when you click on the cross.


and then it's not far to a happy farmer on the chart.

 
I just updated it and it didn't affect the result.
 
please attach the generated code file.
 
here it is
Files:
macd_oop.mq5  5 kb
 
CoreWinTT:

here it is

I copied it without error:

list of files used:


what build do you have? what messages does the compiler display?