EA self terminated
-
I just purchased your software. the UI is incredible. but I have problem with the EA after EA compiled.
almost all the EA i try to build with your software, can't run in backtest because of critical problem. even your sample EA doesn't work in my MT4, they're all stopped with "expert advisor self terminated"

ex:
- bucker of trades https://fxdreema.com/examples#Bucket-of...
error in mt4 backtest:
2017.11.07 08:20:21.395 2017.09.07 23:45:44 rAlgo_rebecca_EA EURUSD,H1: Expert Advisor self terminated
- I try to create my simple EA and found problem with OCODriver for out of range, take a look this generated code:
size = ArraySize(orders1);
int dbremove = false;
for (i=0; i<size; i++)
{
if (OrderSelect(orders1[i], SELECT_BY_TICKET, MODE_TRADES) == false || OrderType() <= OP_SELL)
{
if (OrderSelect(orders2[i], SELECT_BY_TICKET, MODE_TRADES)) {
if (DeleteOrder(orders2[i],clrWhite))
{
dbremove = true;
}
}
else {
dbremove = true;
}if (dbremove == true) { ArrayStripKey(orders1, i); ArrayStripKey(orders2, i); } }}
the out of range error is at this part:
if (OrderSelect(orders1[i], SELECT_BY_TICKET, MODE_TRADES) == false || OrderType() <= OP_SELL)
can you give me 1 working example that really works in real life? I plan to create complex EA but seems it doesn't work even for simple things. cmiiw
thanks
-
Out of interest what country are you in and currency are you using?
-
what is the relevance with my question?

-
sorry everyone, now the EA works well
