An Expert Advisor with orders (refused) Refused
MQL5 → Cuprel · converter mql5 0.2.0 · refused
Source (MQL5)
// an Expert Advisor with orders: out of scope for every converter today
#include <Trade\Trade.mqh>
CTrade trade;
void OnTick() {
if (PositionsTotal() == 0) trade.Buy(0.1);
}
No output
Nothing was converted. The converter refused this program and said why:
Diagnostics
ML1001R-MQ-06: the directive "#include <Trade\Trade.mqh>" is not read (#include, #import, #define and conditional compilation are not translated)
Experimental means: the converter reads a thin, tested slice, adds warnings, and says no when it is unsure. Run the converted program on your own data before relying on it.