Questions from Beginners MQL5 MT5 MetaTrader 5 - page 1506
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
Besides, your flag of deleting positions and orders after the first deletion is always true, because nowhere in the code you make it false after deleting positions and orders.
Logically, it should be like this.
Alexander, but the fact that these flags are initialised false at the global level, doesn't it count?
Regards, Vladimir.
Alexander, does the fact that these flags are initialised false at the global level not count?
Regards, Vladimir.
no
Alexander, does the fact that these flags are initialised false at the global level not count?
Regards, Vladimir.
Once false. And then they are always true and will delete pending orders and positions on every tick.
Once false. And then they are always true and on every tick they will delete pending orders and positions.
Well, yes, that makes sense. Thank you for the clarification.
Regards, Vladimir.
Here is my request structure. Please help.
Here is the structure of my query. Please help.
Try changing the string
to the string
request.type_filling = ORDER_FILLING_FOK;
And it's strange that the compiler gives only one error. Although, if _Points and order_success were initialised at the global level, then, pardon me!
Regards, Vladimir.
Try changing the string
to the string
And it's strange that the compiler gives only one error. Although, if _Points and order_success were initialised at the global level, then, pardon me!
Regards, Vladimir.
Thanks for the suggestion but I had ORDER_FILLING_FOK before and I was getting the same error. I read that not all Symbols support all filling modes so I changed it to what I have in the original post to make sure only allowed filling modes are specified in the request.
Yeah, I just changed the variable names for this forum so you don't judge my weird variable names. lol.
Thanks for the suggestion, but I had ORDER_FILLING_FOK before and was getting the same error. I read that not all symbols support all filling modes, so I changed it to the one in the original post to make sure only allowed filling modes are specified in the query.
SymbolInfoInteger(_Symbol,SYMBOL_FILLING_MODE) returns all allowed filling modes, but you need to specify one specific one of the allowed ones in the request.
Yeah, I just changed the variable names for this forum so you don't judge my weird variable names. lol.
Thanks for the suggestion, but I had ORDER_FILLING_FOK before and was getting the same error. I read that not all characters support all fill modes, so I changed it to the one in the original post to make sure only allowed fill modes are specified in the query.
I've been using this code for a long time.
SymbolInfoInteger(_Symbol,SYMBOL_FILLING_MODE) returns all allowed filling modes, but you need to specify one specific one of the allowed ones in the request.