- Search Metals Mine
-
7bit replied Mar 17, 2010of course all the values seem to be very close to where they should be. But this is an optical illusion, it looks better than it really is. It is easy to predict that the value will be near the last value (the absolute value). Thats also where these ...
t3 contest
-
7bit replied Mar 17, 2010the first difference. if i(t) is your indicator then first calculate the difference di(t) = i(t) - i(t-1) and then try to predict this function. This will show you (if successful) when the indicator will turn around. You can then simply integrate ...
t3 contest
-
7bit replied Mar 17, 2010you can "predict" every MA with such accuracy but it won't really help you. Been there, done that. try to predict the difference!
t3 contest
-
7bit replied Mar 16, 2010But this can not parallelize the code. It can distribute a LOT of processes and threads optimally across the available CPUs, but one process that has only one thread can only run on one CPU. You simply cannot make 8 Cores run the same single threadd ...
Strategy Tester not running at full speed.
-
7bit replied Mar 16, 2010I usually use extern int min_bars = big_number_that_i_need; int start(){ if (Bars < min_bars){ return(0); // keep waiting } // here the rest of the start() function } so it will just do nothing and skip as fast as possible until it reached min_bars.
More bars on chart during backtest?
-
7bit replied Mar 16, 2010LOL That "stupid number that MT4 likes so much" is the biggest possible integer number that can be written with only 32 bits: All bits are set to 1. It is 2³²-1 which is exactly 2,147,483,647 in decimal notation or FFFFFFFF in hexadeciamal or ...
More bars on chart during backtest?
-
7bit replied Mar 16, 2010This is not exactly your system, because the stoplosses will scale out gradually and not all trades at once (unless you hit the stop button or manually place the stop-line at a certain level) but you might be interested: url It is interesting for ...
Do I need a script or an EA here? Pyramid/Snowballing/Scaling In
-
7bit replied Mar 15, 2010You will find them on the same website. The .ex4 file will run standalone, only if you want to compile it yourself you need to install these files. They both belong into the experts/includes/ folder. Find them in the site navigation menu to the left. ...
Snowballs and the anti-grid
-
7bit replied Mar 15, 2010How should this proxmox magically parallelize single threaded code? Does it contain a time machine? If A needs to be finished before B can be started in a single threaded program then no automated voodoo, no matter how sophisticated, can break the ...
Strategy Tester not running at full speed.
-
Snowballs and the anti-grid
Started Mar 15, 2010|Platform Tech|204 replies
Here is a little EA i wrote that will assist in pyramiding profits. {url} It is not a fully ...
-
7bit replied Mar 14, 2010This is my empty EA or indicator template. Code goes either into onOpen() or onTick() void onTick(){ } void onOpen(){ } int start(){ static int numbars; onTick(); if (Bars == numbars){ return(0); } numbars = Bars; onOpen(); return(0); }
to check start of candle
-
7bit replied Mar 14, 2010what do you mean by "save it on the desktop"? Do you mean just save it as a file onto the desktop or do you want to set it as the desktop wallpaper? Witout any additional efforts it is only possible to save files in subfolders of .../metatrader ...
Automated Printing
-
7bit replied Mar 14, 2010Did you find a working system that can be automated and makes more profit than drawdown every month (or at least every quarter)? I have not seen such a thing yet, I'm still searching.
A Systematic Approach to Markets
-
7bit replied Mar 14, 2010There is. Search for the PostMessage() trick that is found for example in the renko scripts and in other scripts that deal with offline charts. You modify it so that it will post the message not to an offline chart but to the live chart itself and ...
Updating EA Before Next Tick
-
7bit replied Mar 12, 2010the while loop will refresh the rates and do its actions and then it sleeps 100ms. This means its looping and checking your trading signals 10 times a second. Anything faster would not make much sense because the network is slower and even 100ms ...
Updating EA Before Next Tick
-
7bit replied Mar 12, 2010Yes, it is only run one time. and if for some reason metatrader terminates the init() call after a while (i have had this problem) your EA will silently stop doing anything without ever being restarted. If for any reason the start() function gets ...
Updating EA Before Next Tick
-
7bit replied Mar 12, 2010The code will work if you call MotherFunction() from start() and not from init(). init() may be forcefully interrupted by Metatrader at any time. init() must immediately return. Sleep(100) means 100 milli seconds, not one second. 100 milli seconds ...
Updating EA Before Next Tick
-
7bit replied Mar 12, 2010You should not do it in init(). This is explicitly stated in the mql4 manual, MT4 relies on the fact that init() will return fast. Instead the manual suggests to call such never-ending functions only in start. This will start the mechanism on the ...
Updating EA Before Next Tick