Download MetaTrader 5

Filling types

To add comments, please log in or register
kemalturgay
265
kemalturgay 2015.01.09 17:40 

On the specification window, the filling type of a pair is designated as "all" with my broker.

But, on the "new order" window, there are only two options: FOK and IOC.

Can I use "return" in this case?


Additionally, if available, with which function I can see the used filling type for an opened position ... I could not find such a function?

Alain Verleyen
Moderator
31134
Alain Verleyen 2015.01.13 19:17  
kemalturgay:

On the specification window, the filling type of a pair is designated as "all" with my broker.

But, on the "new order" window, there are only two options: FOK and IOC.

Can I use "return" in this case?


Why not simply try ?

Additionally, if available, with which function I can see the used filling type for an opened position ... I could not find such a function?

You can't get this information for a position, only for orders.

OrderGetInteger(ORDER_TYPE_FILLING);
kemalturgay
265
kemalturgay 2015.01.14 22:45  
angevoyageur:
Why not simply try ?

Even if the specification says "all", the terminal does not allow to use "return".


By the way, with FOK, even if there is not enough depth, the terminal is always filling my order completely at the current price.


For example ... let's say I want to buy 40 lot USDCHF at the current ask price with FOK.

I look at the depth ... and see that there is just 10 lot at the current ask ... and even 10 lot at the second price step.

But, my order is filled completely with FOK ... at the current ask price without any change in the depth of market.

The terminal is not killing my order, always filling it.

Same is true with IOC, my order is never partially cancelled, always filled completely.


Maybe my terminal is not respecting my filling type choice for it is a demo account.

Can be?

Alain Verleyen
Moderator
31134
Alain Verleyen 2015.01.14 22:49  
kemalturgay:

Even if the specification says "all", the terminal does not allow to use "return".


By the way, with FOK, even if there is not enough depth, the terminal is always filling my order completely at the current price.


For example ... let's say I want to buy 40 lot USDCHF at the current ask price with FOK.

I look at the depth ... and see that there is just 10 lot at the current ask ... and even 10 lot at the second price step.

But, my order is filled completely with FOK ... at the current ask price without any change in the depth of market.

The terminal is not killing my order, always filling it.

Same is true with IOC, my order is never partially cancelled, always filled completely.


Maybe my terminal is not respecting my filling type choice for it is a demo account.

Can be?

Demo account doesn't work like real account, you are right. Orders are always filled, without regard to depth of market.
kemalturgay
265
kemalturgay 2015.01.14 22:55  
Ok clear now ... thanks Ange.
To add comments, please log in or register