Hi jcl,
I actually did train the system and got the results that i posted. I did exactly as I described above.
I now also tried to move the WinPayout and LossPayout variabeles inside the while loop as that makes sense but I still get the same result as in my previous post:
This code:
var objective()
{
return ((var)(NumWinLong+NumWinShort))/(NumLossLong+NumLossShort);
}
function run()
{
//assetList("AssetsFix.csv");
BarPeriod = 5;
LookBack = 100;
NumWFOCycles = 20;
NumCores = -1;
set(BINARY);
set(PARAMETERS);
int TimePeriod = optimize(20,10,100);
var Threshold = 0.01*(HH(TimePeriod)-LL(TimePeriod));
while (asset(loop("EUR/USD")))
{
WinPayout = 75;
LossPayout = 0;
if(NumOpenLong+NumOpenShort == 0)
{
LifeTime = 1;
if(HH(TimePeriod) - priceClose() < Threshold)
enterShort();
else if(priceClose() - LL(TimePeriod) < Threshold)
enterLong();
}
}
}
Gives this result:
Walk-Forward Test: Binary EUR/USD 2011..2016
Profit -5$ MI -0$ DD 16$ Capital 23$
Trades 493 Win 56.6% Avg -0.1p Bars 1
AR -5% PF 0.98 SR -0.10 UI 74% R2 0.00
And there is still the weird issue when I uncomment and test with the assetList line, that the results become different again.
I then get these results:
Walk-Forward Test: Binary EUR/USD 2011..2016
Account AssetsFix.csv
Profit -103$ MI -2$ DD 104$ Capital 96$
Trades 493 Win 45.2% Avg -2.4p Bars 1
AR -24% PF 0.62 SR -2.10 UI 100% R2 0.87