- Search Energy EXCH
-
rangebound replied Feb 24, 2010As a rule Global vars in your DLL will be created the instant the DLL is loaded (first call to the DLL). and changed by ALL access. Local variables within each function are allocated when the function is called and pointers to them are stored on the ...
MT4 DLL Memory Pollution
-
rangebound replied Feb 23, 2010Unfortunately you are unclear about your implementaion. As I understand it : 1) EA passes data to DLL (by reference ? (pointers)) 2) Your DLL copies? this data into its own variables / allocated memory 3) your DLL uses this data now in its own ...
MT4 DLL Memory Pollution
-
rangebound replied Nov 27, 2009As 7Bit states you are manipulating memory that you (DLL) havent allocated and you dont know how MQL deals with allocating memory to that string or how it stores its dynamic size (length) MQL String tstr; tstr = DLLreturnNullString(); This works ...
Strange String behaviour
-
rangebound replied Nov 11, 2009See above post The short answer is no (and what the code you've written will never work) .. the long answer is yes but only through the use of a separate DLL implementing sockets or hooking into MT4's main window, providing 'message queue' ...
10 min chart
-
rangebound replied Nov 11, 2009Update to the above post This code has been tested and works ok void updateofflinewindows(int per) { int hwnd,len; string name; string gwstr = " "; hwnd = GetParent(WindowHandle(Symbol(),per)); if (hwnd != 0) { len = GetWindowTextA(hwnd,gwstr,80); ...
10 min chart
-
rangebound replied Nov 4, 2009Multiple (same period offline) chart windows wont update because Mt4s function : WindowHandle() will only return the handle of the first window it finds. you'll have to use windows api calls. The following should work but hasnt been tested, and ...
10 min chart
-
rangebound replied Oct 19, 2009Ascii codes denote the following : These were introduced to control the head of a printer. chr(13) = carriage return (move to the start(left) of the line) chr(10) = Line Feed (move down one line.) These denote end of file or end of transmission ...
a question about "ifstream read from a file"
-
rangebound replied Sep 30, 2009Well you can copy any .SRV file into the config folder and then you'll have a choice of servers to connect to. (theres a thread here on FF that has a load of differnt SRV files ready for download) I dont run build 208 connected to a server. I just ...
Tick Database
-
rangebound replied Sep 25, 2009Yes you can use your own .FXT tick files with build 208. For those that want it ... download the RAR file at the bottom of this forum thread. (You'll have to login to TSD to download) url
Tick Database
-
rangebound replied Sep 23, 2009Oh and BTW I added two more records to your database during testing So you'll need to delete 2 entries of ('2009.09.23','1.64336','1.64336',' fftestmt4')
"Terminated by Timeout"
-
rangebound replied Sep 23, 2009Well ... if there ever was a good reason to use a decent language to do things then this is it! There were a couple of small issues with your combining of my example and the FFcal code but the main issue was the padding of the Tempstr. This is due ...
"Terminated by Timeout"
-
rangebound replied Sep 23, 2009I tried entering your get string into firefox and got the following : http://www-availableoffers.com/Test/DBLoad.php?TN=GPDUSD_NEW&TT=2009.09.23&B=1.64336&A=1.64336&BN=fftestmt4 returned Error: Table 'wwwavail_EURUSD.GPDUSD_NEW' doesn't exist ...
"Terminated by Timeout"
-
rangebound replied Aug 19, 2009As far as Mt4 is concerned with regard to a historical view, you'll only be able to highlight gaps that occur on the single tick between the close of 1 bar and the open of the next. MT4 wont store tick data (unless you build an indi or ea to save ...
speed of bar on 1 minute chart indicator?
-
rangebound replied Aug 18, 2009You cant. If you dont have any connection to your broker (and they dont know where you want your SL - trailing or otherwise) then no SL will exist. Best fit is to code your own trailing SL logic into your 'EA' in a recoverable manner, and monitor if ...
Stealth StopLosses?
-
rangebound replied Aug 13, 2009I fear you are wasting your time, and the paradox is a mere quirk of nature (maths) much like primes or the magic number squares. Whilst a hard factual explanation as to why these anominalies exist or work, and whether such an answer could be useful ...
Parrondo's Paradox: A Study
-
rangebound replied Jul 16, 2009To conclude (after a rude interuption) In this particular case we only ever want reference the arrays as a Series So we start with the same declaration, but we immediately set the array as a series. double buffer9[]; ... double buffer16[]; init() { ...
Article: Effective usage of Arrays in MQL
-
rangebound replied Jul 16, 2009No you make sure the EA is running (smiley face) always. Then you open the Global Variables window (F3) Manually change the value of the variable that the EA has created and is checking. use any values you like E.G. 0 means dormant state 1 means ...
when or if... possible ?
-
rangebound replied Jul 16, 2009Yes you hit the nail on the head ... the best way to achive what you want to do is to use a global variable to enable you to toggle between an active 'place orders' mode and a dormant 'remember orders' mode You'll need to code a way to store the ...
when or if... possible ?
-
rangebound replied Jul 16, 2009Standard and Series Arrays — Good job taking on the task of enlightening others of the virtues arrays ... I feel some explanation of Series Arrays is also needed here : Normal arrays that you declare are stored in memory in a block from low ...
Article: Effective usage of Arrays in MQL
-
rangebound replied Jul 13, 2009I think TIME might be more relevant. Time[0] stores the start time of the current live bar so... At the moment your EA thinks it might want to close the trade at the close of this bar then save Time[0] in to a variable. Then keep checking it against ...
Need help!! Close order on this bar close