Forum

Tester / Optimizer events

I've had a long hiatus from MT4 so am re-learning the environment again... I've written my methods to output my required results from each optimiser pass to an external file using OnTester(). I'd like to add a little finesse in the form of a "header" row in the file; from everything I've tried

Looking for EAs which "don't work"

I am assisting another trading coach to teach some junior traders about FX trading , systems analysis, backtesting etc. I am looking for sample EAs which "don't work" to use as examples for them. I have written some material for the students, but it would be more interesting for them to see other

Kernel32 GetComputerName

Hi all, Been a while since I have done this sort of coding, so I'm a little rusty... I need to get the computername and am trying: #import "kernel32.dll" string GetComputerNameA( string lpBuffer, int nSize); #import int start() { string name; GetComputerNameA(name, 32767 ); Print

Average of a buffer

Is there a "simple" way to compute, bar-by-bar, the average of a buffer? My custom indicator returns a double value for every bar on the chart. Starting with the first bar on the left, I'd like to average all the data in the buffer for the amount of bars, e.g. on the first bar, return an average of

Interprocess Communications

I am trying to build an IPC through named pipes between another application with a RT data feed and MT4. I have considered using reading/writing files on the disk but would like to achieve the memory option if I can. I am using various combinations of C/C++ dlls and importing the kernel32.dll

Looking for a trade analysis script

Hi All, I have just about exhausted the search function to look for a particular trades analysis script which looked back through the trade history and produced a well formatted report in a file, detailing a lot information about the trading system including profits, losses, max drawdown etc etc. I

Build 223, the Journal and Expert logs

Hi all, I have just recently upgraded to build 223 and have noticed something strange going on... I have an EA which calls a custom indicator "InsideBars" which as the name suggests draws an arrow on the chart below the low of the bar if it is an inside bar, EMPTY_VALUE otherwise. In my Journal, I

Position Size (again)

Hi All, I know this has been asked and answered here before, but I'll be darned if I can find it! I am looking for the algorithm for position sizing for a given stop loss when the account balance is different to the base currency of the trading pair e.g. AccountCurrency : AUD AccountSize: 1000

MT5 Suggestion box?

Is there a suggestion box for the next release anywhere? The use of the 2D surface in the Strategy Tester Optimization Graph is a neat tool for assisting to identify better settings for an EA, but all the results are shades of green regardless of their result compared to the original balance. Yes

Adding zero to shift indexes

Can someone please explain the purpose of adding zero to the "shift" in instances like those in the code below, or point me in the right direction to find out why/when this is required? double mySAR = iSAR ( NULL , PERIOD_H4 , 0.02 , 0.2 , index + 0 ) ; versus double mySAR = iSAR ( NULL , PERIOD_H4