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
Well, since there are no questions, let's continue...
ModifyOrder() function.
Function ModifyOrder is designed to change one or more price levels of one pre-selected order. Here a pending order is understood as a Limit or Stop order, as well as a market Buy or Sell order, i.e. a position. Using the ModifyOrder function you can modify two price levels StopLoss and TakeProfit for the position, while for the pending order the OpenPrice setting price can be changed as well. The modified price levels are passed to the ModifyOrder function as parameters. If any of the parameters is negative, the corresponding price level will not be changed.
Examples of how to use the ModifyOrder() function.
I decided to give the very first examples that I've been asked many times before. This is opening of positions in terms of market order execution Market Watch. It is when we cannot simultaneously give an order to open a position at the market price and attach a pending order to it. Such an opening at Market Watch should be performed in two stages: first, we open a position, and then we attach a pending order to it, i.e. we set StopLoss and TakeProfit price levels.
1. Buy 0.1 lot of the current symbol and set a stop of 30 points
2. Sell 0.15 lot of the current instrument and set SL=45, TP=99
A working script with examples is included in the trailer.Igor, do you have a function to close orders (both just Close and CloseBy)?
Close in alphabetical order should be before ModifyOrder ;-)
Makes sense... ;)
Would you consider it cheeky to do a little, one-post, libation on the subject of "Transmission to function" ?
So far it's a dark logical-ideological forest for me...
(no, it isn't...).
Would you consider it cheeky to have a little one-post education on the subject of "Transmission to function"?
Thank you...
And of course there's no rush... there's no rush.
The market won't run away from us... :)))
Thank you...
And of course there's no rush... there's no rush.
The market won't run away from us... :)))