- Search Crypto Craft
-
7bit replied Sep 5, 2009i thought you had your number crunching running on a different machine than the trading software and just wanted to make a small TCP server for metatrader. Since Python is THE language for networking stuff (a webserver in 3 lines of code) the idea ...
Looking for a "dumb" EA
-
7bit replied Sep 5, 2009a minimal example for ObjectPascal (Lazarus, Delphi) would be: library foo; function do_something(a : double) : double; stdcall; begin result := 42 * a; end; exports do_something; begin end. compile this file with lazarus, fpc, delphi or gpc and you ...
Looking for a good tutorial on DLL imports
-
7bit replied Sep 5, 2009I think the best way to approach this is to use the Python bindings for mql4 and do all the the networking (or other sort of IPC) in Python: url
Looking for a "dumb" EA
-
7bit replied Sep 5, 2009If you give the template the same name as the expert it will automatically load the template when you attach the EA or start the EA in backtester visual mode. I dont know if this is what you wanted to achieve.
EA Loads a Template?
-
7bit replied Sep 4, 2009Yes, it will. It will teach you the concepts of programming. You will need them. After you know these very basic concepts you can just easily learn the new language (mql4) to apply the very same concepts you already learned. i don't recommend C++ to ...
Learning Programming for MT4
-
7bit replied Sep 3, 2009i read somewhere that there is another dll needed to stop some annoyances, its name is something with commonctrl.dll or something like that, cant remember the name exactly, its some runtime dll from microsoft, not sure whether it is included with ...
Running MT4 in linux
-
7bit replied Sep 3, 2009You should not do it like this. start() itself will be called for every tick, your script should be event driven, the event is the arrival of a new tick. you should process only this one tick in start() and immediately return. The usage of long ...
why no tick-actualization
-
7bit replied Sep 3, 2009I would not start learning programming with Metatrader. I would suggest learning the very basics of programming in a more beginner friendly environment. These are namely the following: variables and data types control structures (if, for, while) ...
Learning Programming for MT4
-
7bit replied Sep 3, 20091.) Every built-in function is documented in the mql4 reference. Read the documentation for FileReadNumber(). This function will read from the current position to the next delimiter. 1a) So logically if you have two numbers on one line you have to ...
Need help on csv
-
7bit replied Aug 28, 2009Your posting sounds like you are generally not experienced in coding at all. This (for itself) is nothing you should be worried about since 95% of people using computers (in a productive way) dont use them to program them but rather use other ...
3 Programming Function meanings?
-
7bit replied Aug 26, 2009Python is one of the most popular and widely used programming language currently in existance (small companies like Google use it to program all their backend services, everything that is complicated and has to be solved in an elegant way is done ...
Setting up your MT4 email
-
7bit replied Aug 25, 2009you could also use the python bindings (see the other thread here) and use python to send mails (or any other type of messages over any other type of transport medium). This way you could completely and elegantly circumvent all metatrader ...
Setting up your MT4 email
-
7bit replied Aug 21, 2009This is not really a loop, it is a recursive function call, the function is calling itself. This may work if the number of iterations is small enough but it will increase the stack with every iteration. when it's finally done and the last function ...
Need a coding advice......
-
7bit replied Aug 20, 2009It seems like i have solved the threading problem. You can find the newest files here: url Attached is a screenshot of what i was able to do after having implemented multithreading
embedding python
-
7bit replied Aug 18, 2009attached are my current versions of the files, including dll source code (Lazarus/FPC)
embedding python
-
7bit replied Aug 17, 2009I can answer my first posting, the crash occured because of python26.dll using __cdecl instead of __stdcall and thus not restoring the stack pointer before returning. Also the api of my binding will have to change a bit, currently it allows to ...
embedding python
-
7bit replied Aug 16, 2009OK. I have made a wrapper — url This is a binding for python-2.6 copy the dll to libraries and the mqh to include and then you can include it and execute arbitrary python code, import modules, call functions, start threads, etc. next week i ...
embedding python
-
embedding python
Started Aug 13, 2009|Platform Tech|19 replies
Problem solved! Python can now be used from mql4, even multithreading EAs, network servers, ...
-
7bit replied Jul 11, 2009* You can easily *append* to an existing csv file on every new arriving bar * You can write it directly into a MySQL DB from metatrader (there is free libmysql sample code out there on the relevant forums) * The 1-2-3 steps can programmed, thats the ...
Any perl programmers here?
-
7bit replied Jul 11, 2009If I'm not mistaken this was not on FF but on forex-tsd or some othre forum. They (some russian programmers) made some experiments with a SOM and implemented an indicator that classifies patterns and prints the number of the SOM cell that was hit. ...
I can't believe I'm doing this.