Good day.
The code that i have posted below returns 4109 error and i dont know where to look for the error and it is my first time writing a code for pending orders and how do i delete a certain pending order given that every news times a certain symbol will have a pending trade (BUYSTOP and SELLSTOP) 5 minutes before the news then if one of them is activated, the other pending will be deleted...
Thank you very much
Why aren't you checking the return value and printing the error and any relevant variables ? What are Function return values ? How do I use them ?
Did you allow live trading ? do you have a smiley face in the top right corner of the chart ?
Why aren't you checking the return value and printing the error and any relevant variables ? What are Function return values ? How do I use them ?
Did you allow live trading ? do you have a smiley face in the top right corner of the chart ?
i already enable allow live trading, allow dll imports and activated EA.
i have also figure out the error and it works now but the only question remains is that on how you will know if a certain pending order is activated...
i already enable allow live trading, allow dll imports and activated EA.
i have also figure out the error and it works now but the only question remains is that on how you will know if a certain pending order is activated...
It's no longer pending . . . it's either an OP_BUY or OP_SELL check it's OrderType()
thank you very much
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Good day.
The code that i have posted below returns 4109 error and i dont know where to look for the error and it is my first time writing a code for pending orders and how do i delete a certain pending order given that every news times a certain symbol will have a pending trade (BUYSTOP and SELLSTOP) 5 minutes before the news then if one of them is activated, the other pending will be deleted...
Thank you very much