You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
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