Scripts: SelfGenerator

 

SelfGenerator:

This script generates a file with its own source code (solution of the classical program in MQL5). It may be useful to study programming and algorithms.

Author: Владимир

 
Interesting!!! Thank you
 
Lovely, lovely. Now we can expect source code level self-modifying EAs :)
 
Buter:
Lovely, lovely. Now we can expect source code level self-modifying EAs :)
I'll think about it. ;-)
 

By the way, right in the thread (or on the forum) you can hold a micro-contest: "Who has shorter".

;-)

---------

I thought... better on the forum - to attract people from the mql4 forum to the mql5 forum.

Shorter! If anyone dares to repeat the feat and break the record of brevity, please start a thread on the forum (under the name "Shorter!") and post the code there.

 
Automated-Trading:

SelfGenerator:

Author: Владимир

Hello,

When I tried to execute that script, I have the following error message : 'SelfGenerator.ex5' is too old, it should b recompiled. My MT5 terminal have been updated today on 19/02/2011 (build  401).

What should I do?

Regards, 

 
och:

Hello,

When I tried to execute that script, I have the following error message : 'SelfGenerator.ex5' is too old, it should b recompiled. My MT5 terminal have been updated today on 19/02/2011 (build  401).

What should I do?

Regards, 

Now it's available as a source code.
 

Oh my God...is this supposed to be a joke or what?! Only thing this script does is writing the string "S" into a file...Absolutely useless... 

 

It works as expected. The script re-creates it's own source code. What can we use such a code for? 

I would create a library that utilized this idea to recreate a program, then integrate it with telegram api functions to allow permitted users to request for the source. This will allow the programmer to catch reported bugs in the product and correct them on the fly, anywhere, anytime.