Can anybody help me,
i'm using EA base 1.71 simplified,
i have insert just sendBuyOrder() at the code for creating new order,
and i have error message 4109, it was trade is not allowed.
Please help what its wrong.Never got that error before. Do you have "allow live trading" and all that stuff enabled. Also, simply calling the "sendBuyOrder()" function will continually put in orders. Put in:
if (allOrders==0)
sendBuyOrder();
i'm using mt4 build 205, and just using demo account with migfx.
option live trading i just try ones and not working. i can't test again, because trading is holiday, maybe monday i can test it again with live trading option to be tick, and what else stuff to enable?
about the program, this i have modified :
if (newOrderPrevention(allOrders)==false) {
//+------------------------------------------------------------------+
//+------------------------------------------------------------------+
sendBuyOrder();
// CODE FOR CREATING NEW ORDERS
//+------------------------------------------------------------------+
//+------------------------------------------------------------------+
}
i think your if function its same your newOrderPrevention funtion.
btw, where i can find list of error message?
i'm using mt4 build 205, and just using demo account with migfx.
option live trading i just try ones and not working. i can't test again, because trading is holiday, maybe monday i can test it again with live trading option to be tick, and what else stuff to enable?
about the program, this i have modified :
if (newOrderPrevention(allOrders)==false) {
//+------------------------------------------------------------------+
//+------------------------------------------------------------------+
sendBuyOrder();
// CODE FOR CREATING NEW ORDERS
//+------------------------------------------------------------------+
//+------------------------------------------------------------------+
}
i think your if function its same your newOrderPrevention funtion.
btw, where i can find list of error message?Error messages can be found in the standard library. "stdlib"
The newOrderPrevention() function does not necessarily prevent orders if ones currently exist; it WILL prevent orders if the maximum allowed has been exceeded.
I agree with you Ryan, so i take the code in that location.
I have trace with print function, its look like ok.
23:11:38 Teknik Bonus EURUSD,M1: harga ask 1 = 1.3453
23:11:38 Teknik Bonus EURUSD,M1: T:Take Profit = 1.3463 Point = 0.0001
23:11:38 Teknik Bonus EURUSD,M1: symbol =EURUSDtype 0lotmaker 0.1entryprice: 1.3453 slippage: 3 stopvalue 0TP Value : 1.3463 commentString : HG
but the ticket is not greater than 0, thats way i got error 4109
what all that stuff maybe i haven't setting like live trading option?
Thx Ryan,
It's work now. I think my Mistake is in option.
Now i can create my own ea with your base template.
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Can anybody help me,
i'm using EA base 1.71 simplified,
i have insert just sendBuyOrder() at the code for creating new order,
and i have error message 4109, it was trade is not allowed.
Please help what its wrong.