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
Hello MQL5 community,
I've been reading 'OrderSend' MQL5 site documentation, the .pdf and .chm resources,
none provide details for 'SYMBOL_TRADE_EXECUTION_REQUEST' more than a brief 'Description' ('Execution by request'). Apparently there's four identifier types for 'ENUM_SYMBOL_TRADE_EXECUTION'.
Found on the Russian forum :
In this mode, the performance of a market order at the price previously received from the broker. Before sending a market order with your broker asks for the price of its execution. Upon receipt, the execution of a warrant at this price you can either confirm or deny.
In this mode of execution of the decision of a market order execution price takes the broker without approval from the trader. Sending a market order in this manner implies an early agreement with the price at which it will be executed.
Hello Alain,
Yes, I think your post contains content I was searching for, thank you kindly.
I don't think 'OrderSend''s twelfth parameter enum_order_type_filling is used in MQL4 and I have no previous experience applying it to MQL5 'OrderSend''s parameter code.
"an order can be filled only in the specified amount".
Is this "specified amount" an order's lotsize?
"If the necessary amount of a financial instrument is currently unavailable in the market, the order will not be executed."
What is a "necessary amount of a financial instrument"?
How can necessary amounts of a financial instrument currently be unavailable in the market?
"The required volume can be filled using several offers available on the market at the moment."
What is "required volume" and how can it be filled using "several offers"?
What is enum_order_type_filling's purpose?
Thank you
Did you read this (scroll down a little) : https://www.mql5.com/en/docs/constants/structures/mqltraderequest
Hello Simon,
"Did you read this (scroll down a little)"
I did read it but I hadn't yet read 'OrderSend''s twelfth parameter enum_order_type_filling. I took no interest in it since there wasn't a parameter to apply the content.
Yes, I think your post's link contains content I was searching for, thank you kindly.
Edited by moderator.
"an order can be filled only in the specified amount".
Is this "specified amount" an order's lotsize?
"If the necessary amount of a financial instrument is currently unavailable in the market, the order will not be executed."
What is a "necessary amount of a financial instrument"?
How can necessary amounts of a financial instrument currently be unavailable in the market?
"The required volume can be filled using several offers available on the market at the moment."
What is "required volume" and how can it be filled using "several offers"?
What is enum_order_type_filling's purpose?
I hope it's clearer with above answers. This parameter is setted by the broker. You have to check that before passing an order.
Thank you
Hello Alain,
Yes, I think your post contains content I was searching for, thank you kindly.
I don't think 'OrderSend''s twelfth parameter enum_order_type_filling is used in MQL4 and I have no previous experience applying it to MQL5 'OrderSend''s parameter code.
Hi Nathan, it's not necessary to repeat same questions in 2 posts ;-)
I realized two nearly identical posts were unnecessary after reading both posts but decided to just let it be. Next time, I'll try designating my response a fresh post.
Thank you
WhooDoo22:
Yes. "specified amout", "order volume", "lot size" are all the same.
When you pass an order, buy 1 lot for example, there must be someone who wants to sell 1 lot. On Forex this is not a problem, as this market is very huge, but on some market, there is not necessarily someone to sell.
See above. You can pass an order for 1 lot, and there are only 0.5 lot available on the market.
See above. You want to buy 1 lot, there are 2 offers to sell 0.5 lot on the market.I hope it's clearer with above answers. This parameter is setted by the broker. You have to check that before passing an order.
You are welcome.After you read and reply to my response, I'll let you be the judge of that :)
ORDER_FILLING_FOK is a procedure performing only one of two market entry types, 1.00 buy lot matched to a 1.00 sell lot (type_1) or 1.00 buy lot matched to three sell lots sized at 0.25, 0.25 and 0.50 (type_2). If type_1 or type_2 can't be performed, the order doesn't enter the market.
ORDER_FILLING_IOC is a procedure performing only one market entry type, 1.00 buy lot matched to whatever sell lot size is presently available. The matched sell lot size could be any size up to 1.00.What is ORDER_FILLING_RETURN's procedure?
What is this (documentation) phrases meaning?, "In case of partial filling a market or limit order with remaining volume is not canceled but processed further." (poorly written, straight up)
My translation of the above phrase is, "if a market/limit order is being partially filled it isn't canceled and it's remaining volume isn't canceled but processed further.".
My impression is the procedure is performed under the following criteria (order types (three types) and symbol types (two types)):ORDER TYPES:
type_1: ORDER_TYPE_BUY and SELL
type_2: ORDER_TYPE_BUY and SELL_LIMIT
type_3: ORDER_TYPE_BUY and SELL_STOP_LIMIT
SYMBOL TYPES:
type_1: Market execution
type_2: Exchange execution
What is the difference between them? What are they?
"For the activation of the ORDER_TYPE_BUY_STOP_LIMIT and ORDER_TYPE_SELL_STOP_LIMIT orders, a corresponding limit order ORDER_TYPE_BUY_LIMIT/ORDER_TYPE_SELL_LIMIT with the ORDER_FILLING_RETURN execution type is created."
I'm assuming a buy stop limit order is sent if price reaches "stop price" (the price above current market price) and once price reaches "stop price" the order becomes a buy or sell limit order (depending on code) and the order again waits for price to arrive below current price arriving at buy limit price (buy limit order) or continue to rise above current price arriving at sell limit price (sell limit order). A buy stop limit order is a stop order first then becomes a limit order second. This is correct, yes?
Stop limit orders aren't included in MQL4 and I have no prior experience coding e'm.
Thank you
I guess you haven't come across Fill or Kill before ?
You guessed right :)
Thank you
Hello MQL5 community,
While coding in meta editor I tried using the order type function and was alerted by an error in meta editor's toolbox (see snapshot below).
As you should see, the order type function isn't defined yet its seemingly defined by docs (https://www.mql5.com/en/docs/standardlibrary/tradeclasses/chistoryorderinfo/chistoryorderinfoordertype).
A condition I'm attempting is
How can the order type function be used in meta editor if it isn't defined?
Thank you