OrderSend() questions - page 4

 

Thanks, I've got it roughly. It turns out, there's no way out of necessity to determine current execution policy before assigning particular value to request.type_filling field. I had hoped that the server would decide by itself how (for which mode) to execute the request :)

 

We are constantly working on it. The ultimate goal is to create a trading robot in source code with one big palm button (for tablet) - [Make Money].

It's not working out yet :)

 
Rosh:

We are constantly working on it. The ultimate goal is to create a trading robot in source code with one big palm button (for a tablet) - [Make Money].

It's not working out yet.

I can make up a button :) if the bot works, feel free to contact me.
 
Rosh:

We are constantly working on it. The ultimate goal is to create a trading robot in source code with one big palm button (for tablet) - [Make Money].

It's not working out yet :)

I'm in line. I'll draw you the most beautiful button with a plateau exit. )))
 
tol64:
I'm in line. I'll draw you the prettiest button with a plateau exit. )))
It's always like this with us, we have someone to draw buttons but no one to write bots :(
 
Urain:
This is always the case with us, we have someone to draw buttons but no one to write bots :(
We're working on it around the clock from the computer. I do not give up. The biggest difficulty is that it only takes a long time.
 
tol64:

We are working on it around the clock. I'm not giving up.

The biggest challenge is just that it takes a lot of time.

And it's not a sure thing.
 

What is the significant difference between these two return codes

10020

TRADE_RETCODE_PRICE_CHANGED

Prices have changed

10004

TRADE_RETCODE_REQUOTE

requote

They have to be processed somehow. Do both of these codes refer to market orders? When canTRADE_RETCODE_PRICE_CHANGED be returned instead of a requote?When should a requote be returned instead of TRADE_RETCODE_PRICE_CHANGED?

 
Urain:
And it's not certain that it will work.
You can't rule out that possibility either. :)
 

Rosh:

Yedelkin:

Since we can have two execution policies for a market order, ORDER_FILLING_FOK and ORDER_FILLING_IOC,

This means you can choose between the two options.

I am totally confused. It turned out that while forming my statement about market orders I was guided by the old version of Reference Manual where mode identifiers were directly associated with "execution policies", i.e. with SYMBOL_TRADE_EXECUTION_REQUEST, SYMBOL_TRADE_EXECUTION_INSTANT, SYMBOL_TRADE_EXECUTION_MARKET and SYMBOL_TRADE_EXECUTION_EXCHANGE.

Now everything has changed in the Handbook, and the information about such relationships has disappeared. So there is no unambiguous conclusion that ORDER_FILLING_FOK and ORDER_FILLING_IOC are related only with market orders .

ORDER_FILLING_FOK

This order filling policy means that the order can only be filled to the specified extent. If there is not enough volume of the financial instrument in the market at the moment, the order will not be executed. The required volume can be compiled from several offers currently available in the market.

ORDER_FILLING_IOC

Indicates agreement to execute a trade to the maximum volume available in the market within the volume specified in the order. If full execution is not possible, the order will be filled to the available volume, and the unfulfilled volume will be canceled.

ORDER_FILLING_RETURN

This mode is only used for ORDER_TYPE_BUY_LIMIT and ORDER_TYPE_SELL_LIMIT orders. In case of partial execution the limit order with the remaining volume is not deleted but remains in effect.

For the ORDER_TYPE_BUY_STOP_LIMIT and ORDER_TYPE_SELL_STOP_LIMIT orders the corresponding limit order ORDER_TYPE_BUY_LIMIT/ORDER_TYPE_SELL_LIMIT with the ORDER_FILLING_RETURN type of execution is created on activation.

Please tell me if I am interpreting the new rules correctly:

1. TheORDER_FILLING_RETURN modeis applied only to four order types: ORDER_TYPE_BUY_LIMIT, ORDER_TYPE_LIMIT, ORDER_TYPE_BUY_STOP_LIMIT and ORDER_TYPE_SELL_STOP_LIMIT?

2) Do the ORDER_FILLING_FOK and ORDER_FILLING_IOC modesapply to all orders (both market and pending) including the four order types specified above (ORDER_TYPE_BUY_LIMIT, ORDER_TYPE_SELL_LIMIT, ORDER_TYPE_BUY_STOP_LIMIT and ORDER_TYPE_SELL_STOP_LIMIT)?