ea is skipping trades
6 replies
abdullah
5 years ago #234729
hello
so I’ve created an ea and been testing it on a demo account for the past couple of weeks and found out that it’s been skipping trades although the rules and conditions are met so i made a signal indicator for the same ea and it works perfectly it shows a single every time and doesn’t skip any thing so what the problem here and most important how to fix it hope you help
by the way i’m still a beginner in this experts and Forex field so i hope you explain to me with details
and attached below is the expert and couple a photo explaining
the red squares and yellow numbers shows the signals
the arrows and the white numbers shows the positions opened
thanks in advance
tomas262
5 years ago #234753
abdullah
5 years ago #234757
thanks for the fast responding
no nothing shows in journal or on screen it just skip it like nothing happend
the thing that really killing me is why the signal is working fine and they are the same
tomas262
5 years ago #234778
Please attached zip file or send sqw to [email protected]
abdullah
5 years ago #234805
a
tomas262
5 years ago #234842
The problem with your EA seems to be that you require your EA to evaluate the condition only on bar open but for the cross over you refer to Stochastics[0] value. When EA is evaluated on bar open only you cannot refer to bar[0] since it is the bar that is still in progress (not finished). With “Evaluate on bar open” used you can only refer to Stochastics[1] as a closed (complete) value
You can use Stochastics[0] but you need to uncheck “Evaluate on bar open” and use “Every tick” testing precision in MetaTrader 4
This way it should work correctly. If not let me know
abdullah
5 years ago #234867
Viewing 6 replies - 1 through 6 (of 6 total)