- OrderSelect loop does not filter by magic numberr - incompatible with every other EA including itself on other charts and manual trading. Symbol Doesn't equal Ordersymbol when another currency is added to another seperate chart . - MQL4 forum
- OrderSelect loop does not filter by pair - You can't use any predefines if it's not the current chart. Shouldn't the EA on the other chart be closing it's orders?
- Do not use NormalizeDouble EVER Trailing Bar Entry EA - MQL4 forum
No need for Ask/Bid, you can use OrderClosePrice()
res = OrderCloseReliable(OrderTicket(),OrderLots(),OrderClosePrice(),slippage,Red);
No need for Ask/Bid, you can use OrderClosePrice()
That wasn't working : (It only closed any orders except JPY's pair.)
"
15:08:23 EA_Index_Points_V4 EURNZD,M5: failed close: Ticket #36101780, Price: 1.61975, Slippage: 30
15:08:23 EA_Index_Points_V4 EURNZD,M5: last error: 4107:invalid price parameter for trade function (price = 1.61975, Ask = 1.61975, and Bid = 1.61943)
"
- OrderSelect loop does not filter by magic numberr - incompatible with every other EA including itself on other charts and manual trading. Symbol Doesn't equal Ordersymbol when another currency is added to another seperate chart . - MQL4 forum
- OrderSelect loop does not filter by pair - You can't use any predefines if it's not the current chart. Shouldn't the EA on the other chart be closing it's orders?
- Do not use NormalizeDouble EVER Trailing Bar Entry EA - MQL4 forum
2. => So I have to create a global VAR. Global_Equity = 1 (when equity is above $100)
So Any EA will refer to it and will launch the Close function from any chart... so when it will be done from any JPY's chart it will close properly.
That wasn't working : (It only closed any orders except JPY's pair.)
"
15:08:23 EA_Index_Points_V4 EURNZD,M5: failed close: Ticket #36101780, Price: 1.61975, Slippage: 30
15:08:23 EA_Index_Points_V4 EURNZD,M5: last error: 4107:invalid price parameter for trade function (price = 1.61975, Ask = 1.61975, and Bid = 1.61943)
"
Then you obviously weren't using OrderClosePrice()
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hi all,
I have a global close function called when total open orders (equity) is > $100
This function is called on EURUSD chart.
The function below isn't closing orders like USDJPY... in fact JPY's pair.
Please help how to avoid the error message 4107 (Invalid price param):
Regards