[Archive!] Any rookie question, so as not to clutter up the forum. Professionals, don't pass it by. Couldn't go anywhere without you - 2. - page 364

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 checked this code on my real account, everything is ok, I modified all market orders, but I left the pending orders untouched. What's the problem? What do you think?
In the condition
if(cmd==OP_BUY || cmd==OP_SELL)
and in the condition
if(cmd==OP_BUY)
I don't get it :(
There's also a phrase in the script's name that says market orders only... Remove those conditions for market orders, then conditions for market and pending orders will be met - that's all. No that's not all - read it carefully - requirements and limitations... ...and make sure you add these minimum requirements to your pending orders so they are met as well.
So I have no such lines at all, I don't select type AT ALL, I modify ALL of them, be it pending or market.
I am writing you to carefully read: " FreezeLevel distance restriction.
Market orders are not closed if StopLoss or TakeProfit values violate FreezeLevel parameter requirements.
StopLoss or TakeProfit market orders can not be modified if StopLoss or TakeProfit values violate the StopLevel parameter requirements.
Deletion and modification of pending orders are not performed if the declared open price of the order violates the FreezeLevel parameter requirements.
That's it, the error was there:
So I have no such lines at all, I don't select type AT ALL, I modify ALL of them, be it pending or market.
Also in the condition this
change similarly under the order to be selected (change the order type definition condition to one of these: