Optimization and backtesting - NO CHART New comment dvarrin 2007.07.11 18:17 Hi, I'm trying to backtest and optimize my EA, but no graph appears and no trade seems to be done, but if I run it without optimization, I can get all the trades and all seems to work fine. Any idea on what is wrong? I've something like int signal = 0; if (cond1) { signal = 1; } else if (cond2) { signal = 2; } if (signal ==1) { Create Buy order } else if (signal == 2) { Create Sell order } In this case, it doesn't work, but if I add "signal = 1;" after the first if...else if, then something appears on the graph. I've checked, and the signal = 1; and signal = 2; instructions are reached. Thanks a lot for your help. Cheers, Daniel How to improve backtesting speed EA based on SAR color bar My EA don't trade New comment
Hi,
I'm trying to backtest and optimize my EA, but no graph appears and no trade seems to be done, but if I run it without optimization, I can get all the trades and all seems to work fine.
Any idea on what is wrong?
I've something like
int signal = 0;
if (cond1) {
signal = 1;
}
else if (cond2) {
signal = 2;
}
if (signal ==1) {
Create Buy order
}
else if (signal == 2) {
Create Sell order
}
In this case, it doesn't work, but if I add "signal = 1;" after the first if...else if, then something appears on the graph.
I've checked, and the signal = 1; and signal = 2; instructions are reached.
Thanks a lot for your help.
Cheers,
Daniel