Hello, i have a minimal example that will crash metatrader: #import "python26.dll" void Py_Initialize(); void Py_Finalize(); int PyRun_SimpleString(string code); #import int init(){ Py_Initialize(); PyRun_SimpleString("x=42"); Py_Finalize();
With version 1.3 my mt4R.dll has finally reached production quality and is released under GNU GPL https://sites.google.com/site/prof7bit/r-for-metatrader-4 and some example code that illustrates how to use it can be found here
[1332] exception C000008E at 004CBF22 in C:\Programme\BestDirectMT4\ terminal.exe Could it be that there is some uncaught zero division somewhere inside terminal.exe happening when calculating the y scale of the indicator window? I am having not much
The Sleep() function documentation in the MQL4 reference currently reads: The Sleep() function suspends execution of the current expert within the specified interval . The Sleep() function cannot be called from custom indicators since they calculate
0.01% of you might be interested in the following: I had strange timeout problems one out of 10 times when switching between timeframes when one of my EAs was attached to the chart. This included every EA that makes use of the ofline_charts library
for the second time in a week I have managed to crash (freeze and kill) MT4 and when this happens I lose all objects that were drawn into a chart since it was started. The freeze happens during timeframe switching, something I do in start() seems to
Sometimes I work with text objects in the chart, for example in one of my EAs i have a text object that i can move around with the mouse and it will give me a profit estimation based on the position of the text object and write the result of the
/** * create a positive integer for the use as a magic number. * * The function takes a string as argument and calculates * an 31 bit hash value from it. The hash does certainly not * have the strength of a real cryptographic hash function * but it
Hi, I have made an indicator that will monitor the order history and open orders list, extract some information from there, track changes and do some funny things with it (sending trade signals into an IRC channel for example). Now i have noticed the
Posting code snippets in this forum is almost impossible. Everytime I try to post code or answer a posting with code in the quotation it is pure luck when the formatting doesn't get messed up completely. formatted text 3 spaces now try to quote this
I have come across this https://www.mql5.com/en/articles/1467 The Article describes an approach to automated optimization. I'm currently experimenting with some strongly overfitting EAs and suspect they might be profitable for at least some short
Hello, i have a minimal example that will crash metatrader: Code: #import "python26.dll" void Py_Initialize(); void Py_Finalize(); int PyRun_SimpleString(string code); #import int init(){ Py_Initialize(); PyRun_SimpleString("x=42"); Py_Finalize();