Troubled by the error there are no trading operations - page 18

 
This error came up again, I've already removed all protections altogether to check,

no trading operations

😱😱

 

Question: How do you get an error

test on EURUSD,H1 (hedging)
 2019.04.24 19:45:37   failed instant sell 0.32 EURUSD at 1.11644 [Invalid volume]
 2019.04.24 19:45:38   failed instant sell 0.32 EURUSD at 1.11645 [Invalid volume]
 2019.04.24 19:45:38   failed instant sell 0.32 EURUSD at 1.11646 [Invalid volume]
 2019.04.24 19:45:39   failed instant sell 0.32 EURUSD at 1.11647 [Invalid volume]
 2019.04.24 19:45:39   failed instant sell 0.32 EURUSD at 1.11649 [Invalid volume]
 2019.04.24 19:45:40   failed instant sell 0.32 EURUSD at 1.11648 [Invalid volume]
 2019.04.24 19:45:40   failed instant sell 0.32 EURUSD at 1.11649 [Invalid volume]
 2019.04.24 19:45:41   failed instant sell 0.32 EURUSD at 1.11648 [Invalid volume]

If 0.01 lot is explicitly specified when opening orders.

Checks for maximum and minimum lots are made, for total volume too...

 

In general I cut the sales from the advisor left only the purchases, and still the validator manages to sell somehow !

Bug again....

 
Vladimir Pastushak:

In general I cut the sales from the advisor left only the purchases, and still the validator manages to sell somehow !

Bug again....

Maybe you should stop trying to publish for a while? For a long time...

 

Found the following

In the help file it is written

Maximum allowed total volume of an open position and pending orders in one direction (Buy or Sell). For example, if the Limit is 5 lots, you can have an open Buy position of 5 lots and place a Sell Limit pending order of 5 lots. But in this case you cannot place a pending Buy Limit order (since the total volume in one direction will exceed the limit) or place a Sell Limit order larger than 5 lots.


We open Buy positions without exceeding the Buy Limit, but when we try to close the position partially we get an incorrect volume. When we close a position then we get a Sell position. Does it mean that SYMBOL_VOLUME_LIMIT takes into account the total volume of lots bought and sold?

This fact is confirmed by the test, when we limit the volume of purchases to half of the limit, then the closing/selling goes without problems.


 
Vladimir Pastushak:

Found the following

In the help file it is written

Maximum allowed total volume of an open position and pending orders in one direction (Buy or Sell). For example, if the Limit is 5 lots, you can have an open Buy position of 5 lots and place a Sell Limit pending order of 5 lots. But in this case you cannot place a pending Buy Limit order (since the total volume in one direction will exceed the limit) or place a Sell Limit order larger than 5 lots.


We open Buy positions without exceeding the Buy Limit, but when we try to close the position partially we get an incorrect volume. When we close a position then we get a Sell position. Does it mean that SYMBOL_VOLUME_LIMIT takes into account the total volume of lots to be bought and sold?

This fact is confirmed by a test which limits the volume of purchases to half of the limit, then the closing/selling goes without problems.


These are different errors.

  • Incorrect position (order) volume.
  • Exceeding the limit.
 
Alexey Viktorov:

These are different errors.

  • Incorrect position (order) volume.
  • Exceeding the allowable limit.

Perhaps, the above message from the validator says that the volume is not correct, corrected by adjusting the lots to close part of the position

 
Vladimir Pastushak:

Possibly, the above message from the validator says that the volume is not correct, corrected by adjusting the lots to close part of the position

Do you even understand the difference between a long position and a short position?

 
Алексей Тарабанов:

Do you even understand the difference between long and short positions?

Generally, yes.

 
Vladimir Pastushak:

in general, yes.

It's encouraging.