bighooizachi
bighooizachi
bighooizachi
bighooizachi
Still trying to figure out, after a long break (& didn`t leave enough notes) I can not see where the problem is, 6 warnings, so I got it close .... BUT ..

Of the 6 warnings 4 of which are OrderSelect
" return value of order select should be checked." (lines 194, 223, 350, 379 - column 13)

OrderSelect(ticket, SELECT_BY_TICKET);
bool ret = OrderModify(OrderTicket(), OrderOpenPrice(), SL, TP, 0, Blue);
if (ret == false)
Print("OrderModify() error - ", ErrorDescription(GetLastError()));
}
BuyOrder5();

There were two others: "not all control paths return a value"
(lines 84, 454 - column 2)

line 2 on 84 is just before the last " } " as below.

{
if (Bars < 10)
{
Comment("Not enough bars");
return (0);
}
if (Terminated == true)
{
Comment("EA Terminated.");
return (0);
}

OnEveryTick1();

}

And on 454 same just before the last " } " as below.


{
if (false) ObjectsDeleteAll();


}

Had a look at tutorials etc. again. & given that MT4 - MQL4 has changed init to uinit etc. just can`t see it.....

Might have to "cheat" now, a) either freelancer which could be problematic, like getting help in forums/communities, ironic hipocrasy.
or b) an EA creator/software, current. MT4 - MT5 compliant http://bit.ly/your-own-ea
bighooizachi
Registrado no site MQL5.community