XIn Li:
You haven't yet detected the reference of MQL5 and the easy way to use it? Just place the cursor on MqlTradeRequest and press F1 then start reading the example. There you'll find all you need!
I have an EA that works fine in AMP future MT5 platform demo account. However, it won't send buy limit and sell limit order in their live account. Contact AMP trade desk they said they received order as a Fill or Kill order and I need to remove that setting. I don't know where I need to change in following code so that the pending limit order will be accepted. Please help.
Carl Schreiber #:
You haven't yet detected the reference of MQL5 and the easy way to use it? Just place the cursor on MqlTradeRequest and press F1 then start reading the example. There you'll find all you need!
You haven't yet detected the reference of MQL5 and the easy way to use it? Just place the cursor on MqlTradeRequest and press F1 then start reading the example. There you'll find all you need!
Thanks Carl for your reply. Is the example in the page you referred to
https://www.mql5.com/en/docs/constants/structures/mqltraderequest? still can't find out why it won't send limit orders.
![Documentation on MQL5: Constants, Enumerations and Structures / Data Structures / Trade Request Structure Documentation on MQL5: Constants, Enumerations and Structures / Data Structures / Trade Request Structure](https://c.mql5.com/36/51/documentation-on-mql5-constants__13.png)
Documentation on MQL5: Constants, Enumerations and Structures / Data Structures / Trade Request Structure
- www.mql5.com
Trade Request Structure - Data Structures - Constants, Enumerations and Structures - MQL5 Reference - Reference on algorithmic/automated trading language for MetaTrader 5
You have to set request.type_filling - Have another look at the documentation mentioned.
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
I have an EA that works fine in AMP future MT5 platform demo account. However, it won't send buy limit and sell limit order in their live account. Contact AMP trade desk they said they received order as a Fill or Kill order and I need to remove that setting. I don't know where I need to change in following code so that the pending limit order will be accepted. Please help.