This ea is only scam.
It use the dll to get hard coded data for good backtesting.
In backtest until 18 May 2010 23:37 after 4 continuos loosing trades it ask to the dll a good moment to entry in the market.
So it can adjust equity line.
How they do.
In first in init function they create a variable that contains the end date to ask dll.
Obviosly the end date is the date where the dll cannot contain more historical data.
At the creation time of the variable it contains only one fourth of the right value.
int gi_400 = 318556463;
After it's doubled two times in order to obtain the right value.
gi_400 = 2 * gi_400;
.
.
.
gi_400 = 2 * gi_400;
After, when is the moment to decide the order opening it's used so :
if (lastFourWereLosers() && TimeCurrent() < gi_400)
There is a function that give a true if last 4 trades were in loss.
If the condition is satisfied and the time current is before than 2010.05.18 23:37 the ea ask to the dll if the moment is right to enter market :
if (profxRule(TimeCurrent(), 0, Ask, 34555534, 1790162) == 0)
The ea send to the dll the value of time current so the dll can know when reply that the moment is good.
All here.
If you delete the calls to the dll or modify the function lastFourWereLosers() to reply that the never the four last trade were looser, you can obtain the real backtest of this ea.
Change in the the lastFourWereLosers() function the "return(1)" with "return(0)".
if (lda_0[3][1] < 0.0 && lda_0[2][1] < 0.0 && lda_0[1][1] < 0.0 && lda_0[0][1] < 0.0) return (1);
if (lda_0[3][1] < 0.0 && lda_0[2][1] < 0.0 && lda_0[1][1] < 0.0 && lda_0[0][1] < 0.0)
return (0);
A loosing machine only.
Bye.