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 am interested - is it possible to change the volume of a pending order using mql5?
I tried OrderModify - it says modify failed (Unknown error), although all mandatory elements of the request are filled correctly...
No, you can't. The only option here is to remove the old one and put in a new one.
Why so, it's a simple hold?
Why is it so, isn't it just a simple delayer?
It was discussed a year ago. At the time I also tried to find out why the volume of a pending order could not be changed. At that time (as far as I remember) Renat explained that the volume is such an important element from the order counting point of view and for possible claims of a trader against a dealer that the "one order - one volume" scheme was implemented (or something similar).
I tried OrderModify but the message says modify failed (Unknown error), though all of the mandatory elements of the request are filled correctly...
Look carefully at description of OrderModify() method from CTrade class:
It doesn't have volume among its parameters. Similarly, in section "Structure of trade request(MqlTradeRequest)" in Handbook
Modify Pending Order.
Trade order for modification of pending order price levels. The specification of 7 fields is required:
I see now, thanks for the answer. I just assumed that if volume is not in the list of mandatory query fields, then it's an optional parameter :)
Identifiers such as SYMBOL_TRADE_TICK_VALUE_xxx are provided for the SymbolInfoDouble() function. The description says that this is the "calculated tick value for the position". Do I understand correctly that we are actually talking not about "tick value" but about "value of minimal change of price of an instrument"? In other words, we emphasize the value by which own funds in the deposit currency would change in the case of minimal price movement and a 1-lot contract?
You do not know in advance by how many points the price will jump when the next tick appears.
Identifiers such as SYMBOL_TRADE_TICK_VALUE_xxx are provided for the SymbolInfoDouble() function. The description says that this is the "calculated tick value for the position". Do I understand correctly that we are actually talking not about "tick value" but about "value of minimal change of price of an instrument"? In other words, we emphasize the value by which own funds in the deposit currency would change in the case of minimal price movement and a 1-lot contract?
You do not know in advance by how many points the price will jump when the next tick appears.
Tick is the minimum price change.
OK, I see. One indicator has two different names.
What is the difference between
SYMBOL_POINT
Single point value
double
SYMBOL_TRADE_TICK_SIZE
Minimum price change
double
?
Like the minimum price change can be less than one point value?
Like, can the minimum price change be less than the value of one point?