- Search Metals Mine
-
7bit replied Feb 24, 20102.7 for eu or uj is still 3 times the spread that could be considered "normal".
MT4 brokers spread
-
7bit replied Feb 24, 2010To not further delay the search for patterns I will post my current versions of the dll and the EA. Both have been rewritten to get rid of all globals variables in the dll, so it can be used on more than one pair at the same time and the code has ...
pattern matching
-
7bit replied Feb 23, 2010BTW: did you already see my thread about creating dlls with FPC/Lazarus? url I should add a chapter dedicated to global variables, how to avoid them and how to use them if really necessary.
MT4 DLL Memory Pollution
-
7bit replied Feb 23, 2010a variable declared in the dll outside of the functions would be shared with all function calls from all threads (all EAs). What makes me wonder here is what happens with the same variable declared in the function's argument list. Normally the local ...
MT4 DLL Memory Pollution
-
7bit replied Feb 23, 2010No, not really, it is all about readability (and thus avoiding errors). What i wanted to say is that using arr[MEANINGFUL_NAME] instead of arr[25] is only a convenient way to keep the code readable and maintainable. This way you could easily stuff ...
MT4 DLL Memory Pollution
-
7bit replied Feb 23, 2010Indicators don't need them. The so called "magic numbers" are unique numbers to tell the trades from different EAs apart. An EA that adds it's own unique id number (the magic number) to all orders will be able to find it's own orders later when it ...
Magic Numbers
-
7bit replied Feb 23, 2010If you decide to go the first route (passing around all paramters always as function arguments) it is good practice to do the following from the very beginning on: Imagine your EA has the following (fictional) external settings: extern double ...
MT4 DLL Memory Pollution
-
7bit replied Feb 23, 2010There are two solutions to this problem, none of them involves duplicating the dll. 1.) pass all parameters to all functions *always* as function arguments to all functions in the dll so that there are no global varibles inside the DLL at all. Pass ...
MT4 DLL Memory Pollution
-
7bit replied Feb 20, 2010You can easily adapt it for your needs. all you will need is already somehow contained in this file. First you throw out anything in the section labeled with "the IRC stuff" and remove all references to the functions ircconnect(), sendLine() and ...
Trading Signals
-
7bit replied Feb 20, 2010c:/Program files/metatrader and everything below must be writable by the user or windows will silently redirect all write access. An alternative would be to install the complete Metatrader application into a folder somewhere inside your user profile ...
file-write problem
-
MT4 to IRC bridge (signal sender)
Started Feb 18, 2010|Platform Tech|3 replies
I have made a simplistic MT4->IRC bridge that will log all account activity to an IRC channel. ...
-
7bit replied Feb 18, 2010Look for search words like "trade copier" and variations thereof. These programs often make use of the investor password feature where another instance of MT4 can log into the same account from somewhere else to read the trades in realtime and then ...
Trading Signals
-
7bit replied Feb 15, 2010You are not a coder, are you? The editor has to work with the keyboard alone or else it is broken and unusable. Maybe <shift>-<del> and <shift>-<ins> work. These are the ones I am used to because they are at comfortable positions on the keyboard for ...
MT4 editor (Ctr-C & Ctr-V) problem
-
7bit replied Feb 15, 2010your code modified and with some comments: // the & marks those arguments that the function may change // and changes will be visible to the caller. normally the argument // list of a function is a one-way street and changes are only visible // ...
MT4 Variables
-
7bit replied Feb 14, 2010Of course you cant find the 2m there! It is the script that creates it. If you could download the renko charts from history center you wouldn't need a script to generate them, would you? You need more history for the M1 chart which is the basis for ...
Renko, history, and 2m
-
7bit replied Feb 14, 2010It will take some time. I'm just rewriting big parts of the DLL to get rid of all global variables to be able to use it on more than one chart at the same time. The complete API will be changed and therefore also the mql4 files but it is absolutely ...
pattern matching
-
7bit replied Feb 14, 2010It looks OK. I didn't count the number of variables and I didn't fuel enough coffee yet to run a full simulation in my brain, but it looks ok. The strings that go like "PriceField: Low/High = 0, Close/Close = 1" can be left "" in the iCustom() call ...
Attach Indicator to Chart using EA
-
7bit replied Feb 11, 2010The installer you downloaded from the broker. I would install it in a windows virtual machine (use Sun VirtualBox). I tried it with wine too and had it (almost) successfully running but there will be certain things that just won't work properly ...
Running MT4 in linux
-
7bit replied Feb 11, 2010Welcome to the club. AFAIK nobody has found the holy grail, so you did not miss anything yet. This is not good. Be prepared for many years of hard work with uncertain outcome. Coding a consistent profitable EA will be one of the hardest (and maybe ...
Looking for a proven mechanical system
-
7bit replied Feb 10, 2010Yes, this should be possible with some modifications. Currently the DLL is accessing the bars in the chart directly via a pointer obtained with ArrayCopyRates(). I'll do some experiments to find a similar well performing way to access indicator ...
pattern matching